[ARM] omap: Fix IO_ADDRESS() macros
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Mon, 1 Sep 2008 21:07:37 +0000 (22:07 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 5 Sep 2008 16:02:31 +0000 (17:02 +0100)
commite8a91c953fca683ef9a9335fb00d6eb3e49ac1ee
tree7a9c2ef4b9c25f137e2fb97d36e0248ee24c6ec4
parentd592dd1adc4f57171fa2570a94279d887b78d5b5
[ARM] omap: Fix IO_ADDRESS() macros

OMAP1_IO_ADDRESS(), OMAP2_IO_ADDRESS() and IO_ADDRESS() returns cookies
for use with __raw_{read|write}* for accessing registers.  Therefore,
these macros should return (void __iomem *) cookies, not integer values.

Doing this improves typechecking, and means we can find those places
where, eg, DMA controllers are incorrectly given virtual addresses to
DMA to, or physical addresses are thrown through a virtual to physical
address translation.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
15 files changed:
arch/arm/mach-omap1/serial.c
arch/arm/mach-omap2/cm.h
arch/arm/mach-omap2/gpmc.c
arch/arm/mach-omap2/id.c
arch/arm/mach-omap2/irq.c
arch/arm/mach-omap2/prm.h
arch/arm/mach-omap2/serial.c
arch/arm/plat-omap/common.c
arch/arm/plat-omap/dma.c
arch/arm/plat-omap/dmtimer.c
arch/arm/plat-omap/include/mach/control.h
arch/arm/plat-omap/include/mach/io.h
arch/arm/plat-omap/include/mach/pm.h
arch/arm/plat-omap/include/mach/sdrc.h
drivers/video/omap/dispc.c