]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] 4369/1: AT91: Fix circular dependency in header files
authorAndrew Victor <andrew@sanpeople.com>
Fri, 11 May 2007 12:21:27 +0000 (13:21 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 11 May 2007 16:20:31 +0000 (17:20 +0100)
Resolve the circular dependency in the AT91 header files (io.h and
hardware.h) by moving the at91_sys_read() and at91_sys_write() functions
to io.h

Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/arch-at91/hardware.h
include/asm-arm/arch-at91/io.h
include/asm-arm/arch-at91/irqs.h
include/asm-arm/arch-at91/uncompress.h

index 28133e0154dd880fd0af57c9080663649adaf0ce..1c14382dc3f52c5cbada40dcc2c378a7e1f703e3 100644 (file)
 /* Clocks */
 #define AT91_SLOW_CLOCK                32768           /* slow clock */
 
-#ifndef __ASSEMBLY__
-#include <asm/io.h>
-
-static inline unsigned int at91_sys_read(unsigned int reg_offset)
-{
-       void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS;
-
-       return __raw_readl(addr + reg_offset);
-}
-
-static inline void at91_sys_write(unsigned int reg_offset, unsigned long value)
-{
-       void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS;
-
-       __raw_writel(value, addr + reg_offset);
-}
-#endif
 
 #endif
index 401f327ec0475ed901c024b0efec6570e03a41df..80073fd36b8ee2feee379cfd734d405dfc3a2953 100644 (file)
 #define __mem_pci(a)           (a)
 
 
+#ifndef __ASSEMBLY__
+
+static inline unsigned int at91_sys_read(unsigned int reg_offset)
+{
+       void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS;
+
+       return __raw_readl(addr + reg_offset);
+}
+
+static inline void at91_sys_write(unsigned int reg_offset, unsigned long value)
+{
+       void __iomem *addr = (void __iomem *)AT91_VA_BASE_SYS;
+
+       __raw_writel(value, addr + reg_offset);
+}
+
+#endif
+
 #endif
index 1ffa3bb9a9c17c058d826a0d7f63674bf507b7c0..1127a3b5e928a5c1b7219f439daf3146cb31538a 100644 (file)
@@ -21,6 +21,7 @@
 #ifndef __ASM_ARCH_IRQS_H
 #define __ASM_ARCH_IRQS_H
 
+#include <asm/io.h>
 #include <asm/arch/at91_aic.h>
 
 #define NR_AIC_IRQS 32
index a193d28304b630252cea573493942044670f06a5..30ac587b3b41d415eeb4d11739488ec33d649314 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef __ASM_ARCH_UNCOMPRESS_H
 #define __ASM_ARCH_UNCOMPRESS_H
 
-#include <asm/hardware.h>
+#include <asm/io.h>
 #include <asm/arch/at91_dbgu.h>
 
 /*