]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ARM: Fix Versatile&Integrator includes to behave in the same way as Realview
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 14 Jan 2010 19:59:37 +0000 (19:59 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 29 Apr 2010 17:04:15 +0000 (18:04 +0100)
Realview doesn't include mach/platform.h in mach/hardware.h, so
make versatile behave in the same way.  Also, move the definition
of __io_address() into mach/hardware.h, just like Realview.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-integrator/core.c
arch/arm/mach-integrator/cpu.c
arch/arm/mach-integrator/include/mach/entry-macro.S
arch/arm/mach-integrator/include/mach/hardware.h
arch/arm/mach-integrator/integrator_ap.c
arch/arm/mach-integrator/integrator_cp.c
arch/arm/mach-integrator/leds.c
arch/arm/mach-integrator/pci_v3.c
arch/arm/mach-versatile/core.c
arch/arm/mach-versatile/include/mach/entry-macro.S
arch/arm/mach-versatile/include/mach/hardware.h

index 8b390e36ba69db77a44fd228b6e17a1909b4ca8a..096f899625f88a258e83f253025aa0b9c4e61292 100644 (file)
@@ -24,6 +24,7 @@
 #include <asm/clkdev.h>
 #include <mach/clkdev.h>
 #include <mach/hardware.h>
+#include <mach/platform.h>
 #include <asm/irq.h>
 #include <asm/hardware/arm_timer.h>
 #include <mach/cm.h>
index 44d4c2e8207b1b06a368fbe30b99ecc75f726302..b7618790460adfcd7a5e5829d1f59e518ad295ac 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/io.h>
 
 #include <mach/hardware.h>
+#include <mach/platform.h>
 #include <asm/mach-types.h>
 #include <asm/hardware/icst525.h>
 
index 7649c57acb536663698ffe69cdadb302f8fd4ed7..3d029c9f3ef63b789eac59c63be29590808fe077 100644 (file)
@@ -8,6 +8,7 @@
  * warranty of any kind, whether express or implied.
  */
 #include <mach/hardware.h>
+#include <mach/platform.h>
 #include <mach/irqs.h>
 
                .macro  disable_fiq
index d795642fad22aebc8355870037c91ce2e3687d4b..d44af7209b4891d34958825a236b300e5806b3a2 100644 (file)
@@ -23,7 +23,6 @@
 #define __ASM_ARCH_HARDWARE_H
 
 #include <asm/sizes.h>
-#include <mach/platform.h>
 
 /*
  * Where in virtual memory the IO devices (timers, system controllers
@@ -48,5 +47,7 @@
 #define PCIBIOS_MIN_IO         0x6000
 #define PCIBIOS_MIN_MEM        0x00100000
 
+#define __io_address(n)                ((void __iomem *)IO_ADDRESS(n))
+
 #endif
 
index 8138a7e245623cf352909bf080c98d31d315f475..018c32da4c86f1fb731fa0cd31b712a5d441cf8c 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/io.h>
 
 #include <mach/hardware.h>
+#include <mach/platform.h>
 #include <asm/irq.h>
 #include <asm/setup.h>
 #include <asm/param.h>         /* HZ */
index 66ef86d6d9e3d0d80aa46f2e6f09d4314a491426..c66e8fa0e6227b40e239c9588b6c83161358f041 100644 (file)
@@ -25,6 +25,7 @@
 #include <asm/clkdev.h>
 #include <mach/clkdev.h>
 #include <mach/hardware.h>
+#include <mach/platform.h>
 #include <asm/irq.h>
 #include <asm/setup.h>
 #include <asm/mach-types.h>
index 8dcc823f41353baa1c1a27db44f86ee4a819bc49..28be186adb89fea5256016be198be87de4d10ac1 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/io.h>
 
 #include <mach/hardware.h>
+#include <mach/platform.h>
 #include <asm/leds.h>
 #include <asm/system.h>
 #include <asm/mach-types.h>
index 148d25fc636fbe2c7d91596d4c312272e6460015..e87fe9fa4344efdabc396986be0146df13398e4c 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/io.h>
 
 #include <mach/hardware.h>
+#include <mach/platform.h>
 #include <asm/irq.h>
 #include <asm/signal.h>
 #include <asm/system.h>
index 9ddb49b1cb719119c2df40c3e807a4c90b36e712..b77bc407b77dfa6ef0413aa843968a60a05c5811 100644 (file)
@@ -35,7 +35,6 @@
 
 #include <asm/clkdev.h>
 #include <asm/system.h>
-#include <mach/hardware.h>
 #include <asm/irq.h>
 #include <asm/leds.h>
 #include <asm/hardware/arm_timer.h>
@@ -48,6 +47,8 @@
 #include <asm/mach/irq.h>
 #include <asm/mach/time.h>
 #include <asm/mach/map.h>
+#include <mach/hardware.h>
+#include <mach/platform.h>
 
 #include "core.h"
 #include "clock.h"
@@ -58,7 +59,6 @@
  *
  * Setup a VA for the Versatile Vectored Interrupt Controller.
  */
-#define __io_address(n)                __io(IO_ADDRESS(n))
 #define VA_VIC_BASE            __io_address(VERSATILE_VIC_BASE)
 #define VA_SIC_BASE            __io_address(VERSATILE_SIC_BASE)
 
index 8c802098058509e491a0ac31a788a813031a48bc..e6f7c1663160b34b07b80aed6f6d27d30214e40b 100644 (file)
@@ -8,6 +8,7 @@
  * warranty of any kind, whether express or implied.
  */
 #include <mach/hardware.h>
+#include <mach/platform.h>
 #include <asm/hardware/vic.h>
 
                .macro  disable_fiq
index 7aa906c93154327dfe276ccbf9ff0f822c189f38..4f8f99aac93890435b3edf443540de82d3fa0101 100644 (file)
@@ -23,7 +23,6 @@
 #define __ASM_ARCH_HARDWARE_H
 
 #include <asm/sizes.h>
-#include <mach/platform.h>
 
 /*
  * PCI space virtual addresses
@@ -49,4 +48,6 @@
 /* macro to get at IO space when running virtually */
 #define IO_ADDRESS(x)          (((x) & 0x0fffffff) + (((x) >> 4) & 0x0f000000) + 0xf0000000)
 
+#define __io_address(n)                __io(IO_ADDRESS(n))
+
 #endif