omap: Use resource_size
authorTobias Klauser <tklauser@distanz.ch>
Wed, 11 Nov 2009 02:55:19 +0000 (18:55 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 11 Nov 2009 02:55:19 +0000 (18:55 -0800)
commit6d1352420901b0a74e6149a891ff4457f7199651
treea623ed28c2cde8d3dcb4b0c8681f682f4d58017e
parentee90732456fe8e75406fdd3cd136a4bfb7ce31f5
omap: Use resource_size

Use the resource_size function instead of manually calculating the
resource size. This reduces the chance of introducing off-by-one errors
and actually fixes one in mailbox.c.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/gpmc.c
arch/arm/mach-omap2/mailbox.c