[ARM] 5544/1: Trust PrimeCell resource sizes
authorLinus Walleij <linus.walleij@stericsson.com>
Sun, 7 Jun 2009 22:27:31 +0000 (23:27 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 11 Jun 2009 14:36:56 +0000 (15:36 +0100)
commitdc890c2dcd63a90de68ee5f0253eefbb89d725f0
tree561a3c58647ae9775f7af0a48f56e2255d6eb22d
parent42578c82e0f1810a07ebe29cb05e874893243d8c
[ARM] 5544/1: Trust PrimeCell resource sizes

I found the PrimeCell/AMBA Bus drivers distrusting the resource
passed in as part of the struct amba_device abstraction. This
patch removes all hard coded resource sizes found in the PrimeCell
drivers and move the responsibility of this definition back to
the platform/board device definition, which already exist and
appear to be correct for all in-tree users of these drivers.
We do this using the resource_size() inline function which was
also replicated in the only driver using the resource size, so
that has been changed too. The KMI_SIZE was left in kmi.h in case
someone likes it. Test-compiled against Versatile and Integrator
defconfigs, seems to work but I don't posess these boards and
cannot test them.

Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/input/serio/ambakmi.c
drivers/mmc/host/mmci.c
drivers/rtc/rtc-pl030.c
drivers/rtc/rtc-pl031.c
drivers/serial/amba-pl010.c
drivers/serial/amba-pl011.c
drivers/video/amba-clcd.c
sound/arm/aaci.c