diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-09-14 16:14:01 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-09-19 09:11:53 -0400 |
commit | f25d696aed301a38f744d6e4f661e45736a12a1c (patch) | |
tree | 365255d4a475b2479200c314725d79efff0e9fb7 /arch/arm/mach-imx/mach-kzm_arm11_01.c | |
parent | a21e5e282b7293ce1a192757ffe1baa71618961c (diff) |
ARM: imx: use __iomem pointers for MMIO
ARM is moving to stricter checks on readl/write functions,
so we need to use the correct types everywhere.
This found a bug in mach-armadillo5x0.c, where we attempt mmio
on the MXC_CCM_RCSR address that is currently defined to 0xc
and consequently causes an illegal address access.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/mach-kzm_arm11_01.c')
-rw-r--r-- | arch/arm/mach-imx/mach-kzm_arm11_01.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/mach-kzm_arm11_01.c b/arch/arm/mach-imx/mach-kzm_arm11_01.c index 5d08533ab2c7..4b9b7aae7a9b 100644 --- a/arch/arm/mach-imx/mach-kzm_arm11_01.c +++ b/arch/arm/mach-imx/mach-kzm_arm11_01.c | |||
@@ -259,13 +259,13 @@ static void __init kzm_board_init(void) | |||
259 | */ | 259 | */ |
260 | static struct map_desc kzm_io_desc[] __initdata = { | 260 | static struct map_desc kzm_io_desc[] __initdata = { |
261 | { | 261 | { |
262 | .virtual = MX31_CS4_BASE_ADDR_VIRT, | 262 | .virtual = (unsigned long)MX31_CS4_BASE_ADDR_VIRT, |
263 | .pfn = __phys_to_pfn(MX31_CS4_BASE_ADDR), | 263 | .pfn = __phys_to_pfn(MX31_CS4_BASE_ADDR), |
264 | .length = MX31_CS4_SIZE, | 264 | .length = MX31_CS4_SIZE, |
265 | .type = MT_DEVICE | 265 | .type = MT_DEVICE |
266 | }, | 266 | }, |
267 | { | 267 | { |
268 | .virtual = MX31_CS5_BASE_ADDR_VIRT, | 268 | .virtual = (unsigned long)MX31_CS5_BASE_ADDR_VIRT, |
269 | .pfn = __phys_to_pfn(MX31_CS5_BASE_ADDR), | 269 | .pfn = __phys_to_pfn(MX31_CS5_BASE_ADDR), |
270 | .length = MX31_CS5_SIZE, | 270 | .length = MX31_CS5_SIZE, |
271 | .type = MT_DEVICE | 271 | .type = MT_DEVICE |