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/zeus.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/zeus.c')
-rw-r--r-- | arch/arm/mach-pxa/zeus.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-pxa/zeus.c b/arch/arm/mach-pxa/zeus.c index 99c49bcd9f70..9188492fec2f 100644 --- a/arch/arm/mach-pxa/zeus.c +++ b/arch/arm/mach-pxa/zeus.c | |||
@@ -860,25 +860,25 @@ static void __init zeus_init(void) | |||
860 | 860 | ||
861 | static struct map_desc zeus_io_desc[] __initdata = { | 861 | static struct map_desc zeus_io_desc[] __initdata = { |
862 | { | 862 | { |
863 | .virtual = ZEUS_CPLD_VERSION, | 863 | .virtual = (unsigned long)ZEUS_CPLD_VERSION, |
864 | .pfn = __phys_to_pfn(ZEUS_CPLD_VERSION_PHYS), | 864 | .pfn = __phys_to_pfn(ZEUS_CPLD_VERSION_PHYS), |
865 | .length = 0x1000, | 865 | .length = 0x1000, |
866 | .type = MT_DEVICE, | 866 | .type = MT_DEVICE, |
867 | }, | 867 | }, |
868 | { | 868 | { |
869 | .virtual = ZEUS_CPLD_ISA_IRQ, | 869 | .virtual = (unsigned long)ZEUS_CPLD_ISA_IRQ, |
870 | .pfn = __phys_to_pfn(ZEUS_CPLD_ISA_IRQ_PHYS), | 870 | .pfn = __phys_to_pfn(ZEUS_CPLD_ISA_IRQ_PHYS), |
871 | .length = 0x1000, | 871 | .length = 0x1000, |
872 | .type = MT_DEVICE, | 872 | .type = MT_DEVICE, |
873 | }, | 873 | }, |
874 | { | 874 | { |
875 | .virtual = ZEUS_CPLD_CONTROL, | 875 | .virtual = (unsigned long)ZEUS_CPLD_CONTROL, |
876 | .pfn = __phys_to_pfn(ZEUS_CPLD_CONTROL_PHYS), | 876 | .pfn = __phys_to_pfn(ZEUS_CPLD_CONTROL_PHYS), |
877 | .length = 0x1000, | 877 | .length = 0x1000, |
878 | .type = MT_DEVICE, | 878 | .type = MT_DEVICE, |
879 | }, | 879 | }, |
880 | { | 880 | { |
881 | .virtual = ZEUS_PC104IO, | 881 | .virtual = (unsigned long)ZEUS_PC104IO, |
882 | .pfn = __phys_to_pfn(ZEUS_PC104IO_PHYS), | 882 | .pfn = __phys_to_pfn(ZEUS_PC104IO_PHYS), |
883 | .length = 0x00800000, | 883 | .length = 0x00800000, |
884 | .type = MT_DEVICE, | 884 | .type = MT_DEVICE, |