diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-09-14 20:20:24 +0000 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-09-19 15:19:14 +0200 |
commit | df38b24fa87ba4c386e50b83befd93d0518b7ea8 (patch) | |
tree | 368f02172fe070e8a2cc5e0d333ddc5377347fd0 /arch/arm/mach-lpc32xx/include/mach | |
parent | c72ecbec1999204be15e40ade63585b16a6f713a (diff) | |
download | blackbird-op-linux-df38b24fa87ba4c386e50b83befd93d0518b7ea8.tar.gz blackbird-op-linux-df38b24fa87ba4c386e50b83befd93d0518b7ea8.zip |
ARM: lpc32xx: use __iomem pointers for MMIO
ARM is moving to stricter checks on readl/write functions,
so we need to use the correct types everywhere.
Cc: Roland Stigge <stigge@antcom.de>
Cc: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-lpc32xx/include/mach')
-rw-r--r-- | arch/arm/mach-lpc32xx/include/mach/hardware.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-lpc32xx/include/mach/hardware.h b/arch/arm/mach-lpc32xx/include/mach/hardware.h index 33e1dde37bd9..69065de97a3d 100644 --- a/arch/arm/mach-lpc32xx/include/mach/hardware.h +++ b/arch/arm/mach-lpc32xx/include/mach/hardware.h @@ -25,7 +25,7 @@ /* * This macro relies on fact that for all HW i/o addresses bits 20-23 are 0 */ -#define IO_ADDRESS(x) (((((x) & 0xff000000) >> 4) | ((x) & 0xfffff)) |\ +#define IO_ADDRESS(x) IOMEM(((((x) & 0xff000000) >> 4) | ((x) & 0xfffff)) |\ IO_BASE) #define io_p2v(x) ((void __iomem *) (unsigned long) IO_ADDRESS(x)) |