ARM: OMAP2+: Improve a size determination in sr_dev_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 3 Jun 2017 17:02:24 +0000 (19:02 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 8 Jun 2017 10:02:31 +0000 (03:02 -0700)
commit1dfb5b59d6571104eff6629a0e73a6af347a3226
tree364f5e079321afe6cbc3ddf9bb3eed78fb562283
parent1a61a2a5a6476c9053a6c50265ded7f1387960fb
ARM: OMAP2+: Improve a size determination in sr_dev_init()

Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/sr_device.c