diff options
author | Arnd Bergmann <arnd@arndb.de> | 2011-10-01 16:03:45 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2011-10-08 09:03:07 -0400 |
commit | 97b09da4ee36ec4bd0f6e16b84b4bb6fa05db110 (patch) | |
tree | 34c80d050a0cc8538d0fc22213772560dc3db2f3 /arch/arm/mach-pxa/pxa27x.c | |
parent | 7272889d3f40ed6aa2ade32bed5834789b3299cc (diff) |
ARM: pxa: use correct __iomem annotations
This tries to clear up the confusion between integers and iomem pointers
in the marvell pxa platform. MMIO addresses are supposed to be __iomem*
values, in order to let the Linux type checking work correctly. This
patch moves the cast to __iomem as far back as possible, to the place
where the MMIO virtual address windows are defined.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/pxa27x.c')
-rw-r--r-- | arch/arm/mach-pxa/pxa27x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index 9d2400b5f503..729af54991cb 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c | |||
@@ -390,7 +390,7 @@ void __init pxa27x_init_irq(void) | |||
390 | 390 | ||
391 | static struct map_desc pxa27x_io_desc[] __initdata = { | 391 | static struct map_desc pxa27x_io_desc[] __initdata = { |
392 | { /* Mem Ctl */ | 392 | { /* Mem Ctl */ |
393 | .virtual = SMEMC_VIRT, | 393 | .virtual = (unsigned long)SMEMC_VIRT, |
394 | .pfn = __phys_to_pfn(PXA2XX_SMEMC_BASE), | 394 | .pfn = __phys_to_pfn(PXA2XX_SMEMC_BASE), |
395 | .length = 0x00200000, | 395 | .length = 0x00200000, |
396 | .type = MT_DEVICE | 396 | .type = MT_DEVICE |