aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-integrator
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-09-24 03:22:02 -0400
committerArnd Bergmann <arnd@arndb.de>2012-10-09 11:27:33 -0400
commit21c8715f0a1f4df8bfa2bd6f3915e5e33c1c2e6e (patch)
treec60c540c4799ad412161dd11090cee815926efe7 /arch/arm/mach-integrator
parentc6e9fbbf4c9aa837c0d39a097f96aaf4f90dfef1 (diff)
ARM: integrator: use __iomem pointers for MMIO, part 2
Due to some interesting merges in the integrator code, not all users of mmio pointers were converted before, this fixes all warnings that got introduced as a consequence. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-integrator')
-rw-r--r--arch/arm/mach-integrator/include/mach/cm.h2
-rw-r--r--arch/arm/mach-integrator/include/mach/platform.h6
-rw-r--r--arch/arm/mach-integrator/integrator_ap.c2
-rw-r--r--arch/arm/mach-integrator/integrator_cp.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-integrator/include/mach/cm.h b/arch/arm/mach-integrator/include/mach/cm.h
index 1a78692e32a4..202e6a57f100 100644
--- a/arch/arm/mach-integrator/include/mach/cm.h
+++ b/arch/arm/mach-integrator/include/mach/cm.h
@@ -3,7 +3,7 @@
3 */ 3 */
4void cm_control(u32, u32); 4void cm_control(u32, u32);
5 5
6#define CM_CTRL IO_ADDRESS(INTEGRATOR_HDR_CTRL) 6#define CM_CTRL __io_address(INTEGRATOR_HDR_CTRL)
7 7
8#define CM_CTRL_LED (1 << 0) 8#define CM_CTRL_LED (1 << 0)
9#define CM_CTRL_nMBDET (1 << 1) 9#define CM_CTRL_nMBDET (1 << 1)
diff --git a/arch/arm/mach-integrator/include/mach/platform.h b/arch/arm/mach-integrator/include/mach/platform.h
index 4c0347526851..efeac5d0bc9e 100644
--- a/arch/arm/mach-integrator/include/mach/platform.h
+++ b/arch/arm/mach-integrator/include/mach/platform.h
@@ -324,9 +324,9 @@
324 */ 324 */
325#define PHYS_PCI_V3_BASE 0x62000000 325#define PHYS_PCI_V3_BASE 0x62000000
326 326
327#define PCI_MEMORY_VADDR 0xe8000000 327#define PCI_MEMORY_VADDR IOMEM(0xe8000000)
328#define PCI_CONFIG_VADDR 0xec000000 328#define PCI_CONFIG_VADDR IOMEM(0xec000000)
329#define PCI_V3_VADDR 0xed000000 329#define PCI_V3_VADDR IOMEM(0xed000000)
330 330
331/* ------------------------------------------------------------------------ 331/* ------------------------------------------------------------------------
332 * Integrator Interrupt Controllers 332 * Integrator Interrupt Controllers
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c
index d5b5435a09ae..e6617c134faf 100644
--- a/arch/arm/mach-integrator/integrator_ap.c
+++ b/arch/arm/mach-integrator/integrator_ap.c
@@ -157,7 +157,7 @@ static struct map_desc ap_io_desc[] __initdata = {
157static void __init ap_map_io(void) 157static void __init ap_map_io(void)
158{ 158{
159 iotable_init(ap_io_desc, ARRAY_SIZE(ap_io_desc)); 159 iotable_init(ap_io_desc, ARRAY_SIZE(ap_io_desc));
160 vga_base = PCI_MEMORY_VADDR; 160 vga_base = (unsigned long)PCI_MEMORY_VADDR;
161 pci_map_io_early(__phys_to_pfn(PHYS_PCI_IO_BASE)); 161 pci_map_io_early(__phys_to_pfn(PHYS_PCI_IO_BASE));
162} 162}
163 163
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c
index 6870a1fbcd78..5b08e8e4cc83 100644
--- a/arch/arm/mach-integrator/integrator_cp.c
+++ b/arch/arm/mach-integrator/integrator_cp.c
@@ -261,6 +261,8 @@ static void __init intcp_init_early(void)
261#endif 261#endif
262} 262}
263 263
264#ifdef CONFIG_OF
265
264static void __init intcp_timer_init_of(void) 266static void __init intcp_timer_init_of(void)
265{ 267{
266 struct device_node *node; 268 struct device_node *node;
@@ -297,8 +299,6 @@ static struct sys_timer cp_of_timer = {
297 .init = intcp_timer_init_of, 299 .init = intcp_timer_init_of,
298}; 300};
299 301
300#ifdef CONFIG_OF
301
302static const struct of_device_id fpga_irq_of_match[] __initconst = { 302static const struct of_device_id fpga_irq_of_match[] __initconst = {
303 { .compatible = "arm,versatile-fpga-irq", .data = fpga_irq_of_init, }, 303 { .compatible = "arm,versatile-fpga-irq", .data = fpga_irq_of_init, },
304 { /* Sentinel */ } 304 { /* Sentinel */ }