]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
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)
committerTony Lindgren <tony@atomide.com>
Thu, 4 Sep 2008 22:39:04 +0000 (15:39 -0700)
commit4c9b7493162677a728586a9e63e0fa81de39d461
treec603ee814dc5d10a47a7097c4b3e35fe9d996945
parent90b0032b35c309df40de0c713eaee93ac6d7a1ea
omap: Fix IO_ADDRESS() macros

Modified version of Russell's patch 40c0133a904466ec5423d1088d3c85598ac9e030
to apply to linux-omap tree.

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>
12 files changed:
arch/arm/mach-omap1/serial.c
arch/arm/mach-omap2/gpmc.c
arch/arm/mach-omap2/irq.c
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