diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-09-14 16:16:39 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-09-19 09:11:54 -0400 |
commit | b7a3f8db07c1bca303dbf038f108dd84638bcd82 (patch) | |
tree | 8b17e960201ad2d76f4fb26be76ba4aa7487599a /arch/arm/mach-integrator/pci_v3.c | |
parent | f25d696aed301a38f744d6e4f661e45736a12a1c (diff) |
ARM: integrator: 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 patch has a few small conflicts with stuff in linux-next, which
we have to sort out in arm-soc.
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-integrator/pci_v3.c')
-rw-r--r-- | arch/arm/mach-integrator/pci_v3.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-integrator/pci_v3.c b/arch/arm/mach-integrator/pci_v3.c index b866880e82ac..e6145a85acf8 100644 --- a/arch/arm/mach-integrator/pci_v3.c +++ b/arch/arm/mach-integrator/pci_v3.c | |||
@@ -181,7 +181,7 @@ static DEFINE_RAW_SPINLOCK(v3_lock); | |||
181 | #undef V3_LB_BASE_PREFETCH | 181 | #undef V3_LB_BASE_PREFETCH |
182 | #define V3_LB_BASE_PREFETCH 0 | 182 | #define V3_LB_BASE_PREFETCH 0 |
183 | 183 | ||
184 | static unsigned long v3_open_config_window(struct pci_bus *bus, | 184 | static void __iomem *v3_open_config_window(struct pci_bus *bus, |
185 | unsigned int devfn, int offset) | 185 | unsigned int devfn, int offset) |
186 | { | 186 | { |
187 | unsigned int address, mapaddress, busnr; | 187 | unsigned int address, mapaddress, busnr; |
@@ -280,7 +280,7 @@ static void v3_close_config_window(void) | |||
280 | static int v3_read_config(struct pci_bus *bus, unsigned int devfn, int where, | 280 | static int v3_read_config(struct pci_bus *bus, unsigned int devfn, int where, |
281 | int size, u32 *val) | 281 | int size, u32 *val) |
282 | { | 282 | { |
283 | unsigned long addr; | 283 | void __iomem *addr; |
284 | unsigned long flags; | 284 | unsigned long flags; |
285 | u32 v; | 285 | u32 v; |
286 | 286 | ||
@@ -311,7 +311,7 @@ static int v3_read_config(struct pci_bus *bus, unsigned int devfn, int where, | |||
311 | static int v3_write_config(struct pci_bus *bus, unsigned int devfn, int where, | 311 | static int v3_write_config(struct pci_bus *bus, unsigned int devfn, int where, |
312 | int size, u32 val) | 312 | int size, u32 val) |
313 | { | 313 | { |
314 | unsigned long addr; | 314 | void __iomem *addr; |
315 | unsigned long flags; | 315 | unsigned long flags; |
316 | 316 | ||
317 | raw_spin_lock_irqsave(&v3_lock, flags); | 317 | raw_spin_lock_irqsave(&v3_lock, flags); |
@@ -391,9 +391,9 @@ static int __init pci_v3_setup_resources(struct pci_sys_data *sys) | |||
391 | * means I can't get additional information on the reason for the pm2fb | 391 | * means I can't get additional information on the reason for the pm2fb |
392 | * problems. I suppose I'll just have to mind-meld with the machine. ;) | 392 | * problems. I suppose I'll just have to mind-meld with the machine. ;) |
393 | */ | 393 | */ |
394 | #define SC_PCI IO_ADDRESS(INTEGRATOR_SC_PCIENABLE) | 394 | #define SC_PCI __io_address(INTEGRATOR_SC_PCIENABLE) |
395 | #define SC_LBFADDR IO_ADDRESS(INTEGRATOR_SC_BASE + 0x20) | 395 | #define SC_LBFADDR __io_address(INTEGRATOR_SC_BASE + 0x20) |
396 | #define SC_LBFCODE IO_ADDRESS(INTEGRATOR_SC_BASE + 0x24) | 396 | #define SC_LBFCODE __io_address(INTEGRATOR_SC_BASE + 0x24) |
397 | 397 | ||
398 | static int | 398 | static int |
399 | v3_pci_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | 399 | v3_pci_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) |