diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-09-14 16:19:40 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-09-19 09:19:13 -0400 |
commit | 13ec32f47cb42cecc9cd262c307ef9377c601007 (patch) | |
tree | bcb822eb8b6b2f446a6dddc621dbca1306ada432 /arch/arm/mach-ixp4xx/common.c | |
parent | 3c65c6bac723dc0f418d50de9b2ba8b52ff79f2d (diff) |
ARM: ixp4xx: use __iomem pointers for MMIO
ARM is moving to stricter checks on readl/write functions,
so we need to use the correct types everywhere.
At the moment, this patch conflicts with other patches in linux-next,
need to sort this out.
Cc: Imre Kaloz <kaloz@openwrt.org>
Cc: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-ixp4xx/common.c')
-rw-r--r-- | arch/arm/mach-ixp4xx/common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c index a9f80943d01f..fdf91a160884 100644 --- a/arch/arm/mach-ixp4xx/common.c +++ b/arch/arm/mach-ixp4xx/common.c | |||
@@ -53,24 +53,24 @@ static struct clock_event_device clockevent_ixp4xx; | |||
53 | *************************************************************************/ | 53 | *************************************************************************/ |
54 | static struct map_desc ixp4xx_io_desc[] __initdata = { | 54 | static struct map_desc ixp4xx_io_desc[] __initdata = { |
55 | { /* UART, Interrupt ctrl, GPIO, timers, NPEs, MACs, USB .... */ | 55 | { /* UART, Interrupt ctrl, GPIO, timers, NPEs, MACs, USB .... */ |
56 | .virtual = IXP4XX_PERIPHERAL_BASE_VIRT, | 56 | .virtual = (unsigned long)IXP4XX_PERIPHERAL_BASE_VIRT, |
57 | .pfn = __phys_to_pfn(IXP4XX_PERIPHERAL_BASE_PHYS), | 57 | .pfn = __phys_to_pfn(IXP4XX_PERIPHERAL_BASE_PHYS), |
58 | .length = IXP4XX_PERIPHERAL_REGION_SIZE, | 58 | .length = IXP4XX_PERIPHERAL_REGION_SIZE, |
59 | .type = MT_DEVICE | 59 | .type = MT_DEVICE |
60 | }, { /* Expansion Bus Config Registers */ | 60 | }, { /* Expansion Bus Config Registers */ |
61 | .virtual = IXP4XX_EXP_CFG_BASE_VIRT, | 61 | .virtual = (unsigned long)IXP4XX_EXP_CFG_BASE_VIRT, |
62 | .pfn = __phys_to_pfn(IXP4XX_EXP_CFG_BASE_PHYS), | 62 | .pfn = __phys_to_pfn(IXP4XX_EXP_CFG_BASE_PHYS), |
63 | .length = IXP4XX_EXP_CFG_REGION_SIZE, | 63 | .length = IXP4XX_EXP_CFG_REGION_SIZE, |
64 | .type = MT_DEVICE | 64 | .type = MT_DEVICE |
65 | }, { /* PCI Registers */ | 65 | }, { /* PCI Registers */ |
66 | .virtual = IXP4XX_PCI_CFG_BASE_VIRT, | 66 | .virtual = (unsigned long)IXP4XX_PCI_CFG_BASE_VIRT, |
67 | .pfn = __phys_to_pfn(IXP4XX_PCI_CFG_BASE_PHYS), | 67 | .pfn = __phys_to_pfn(IXP4XX_PCI_CFG_BASE_PHYS), |
68 | .length = IXP4XX_PCI_CFG_REGION_SIZE, | 68 | .length = IXP4XX_PCI_CFG_REGION_SIZE, |
69 | .type = MT_DEVICE | 69 | .type = MT_DEVICE |
70 | }, | 70 | }, |
71 | #ifdef CONFIG_DEBUG_LL | 71 | #ifdef CONFIG_DEBUG_LL |
72 | { /* Debug UART mapping */ | 72 | { /* Debug UART mapping */ |
73 | .virtual = IXP4XX_DEBUG_UART_BASE_VIRT, | 73 | .virtual = (unsigned long)IXP4XX_DEBUG_UART_BASE_VIRT, |
74 | .pfn = __phys_to_pfn(IXP4XX_DEBUG_UART_BASE_PHYS), | 74 | .pfn = __phys_to_pfn(IXP4XX_DEBUG_UART_BASE_PHYS), |
75 | .length = IXP4XX_DEBUG_UART_REGION_SIZE, | 75 | .length = IXP4XX_DEBUG_UART_REGION_SIZE, |
76 | .type = MT_DEVICE | 76 | .type = MT_DEVICE |