ARM: ep93xx: clean-up mach/io.h
authorRob Herring <rob.herring@calxeda.com>
Sun, 12 Feb 2012 21:40:10 +0000 (15:40 -0600)
committerRob Herring <rob.herring@calxeda.com>
Wed, 7 Mar 2012 03:34:41 +0000 (21:34 -0600)
Move ep93xx specifics in mach/io.h to ep93xx-regs.h.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ryan Mallon <rmallon@gmail.com>
arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h
arch/arm/mach-ep93xx/include/mach/io.h

index c4a7b84ef06da131481d8e673ed11e30067fa2ad..e711d0e021c7212d2c581cbedc0637256bd160ec 100644 (file)
@@ -5,6 +5,15 @@
 #ifndef __ASM_ARCH_EP93XX_REGS_H
 #define __ASM_ARCH_EP93XX_REGS_H
 
+/*
+ * A typesafe __io() variation for variable initialisers
+ */
+#ifdef __ASSEMBLER__
+#define IOMEM(p)                p
+#else
+#define IOMEM(p)                ((void __iomem __force *)(p))
+#endif
+
 /*
  * EP93xx Physical Memory Map:
  *
index 594b77f21054259a7caffcf98313e5b067faedaf..17e76ef14c30e9372065d7e91ebcea019a6afcee 100644 (file)
 #define __io(p)                        __typesafe_io(p)
 #define __mem_pci(p)           (p)
 
-/*
- * A typesafe __io() variation for variable initialisers
- */
-#ifdef __ASSEMBLER__
-#define IOMEM(p)               p
-#else
-#define IOMEM(p)               ((void __iomem __force *)(p))
-#endif
-
 #endif /* __ASM_MACH_IO_H */