[PATCH 2/6] [ARM] footbridge: remove the useless definition of __mem_pci()

Eric Miao eric.y.miao at gmail.com
Wed Jun 23 07:52:14 EDT 2010


Signed-off-by: Eric Miao <eric.miao at canonical.com>
---
 arch/arm/mach-footbridge/include/mach/io.h |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/arch/arm/mach-footbridge/include/mach/io.h b/arch/arm/mach-footbridge/include/mach/io.h
index c65ed51..d3b14d2 100644
--- a/arch/arm/mach-footbridge/include/mach/io.h
+++ b/arch/arm/mach-footbridge/include/mach/io.h
@@ -21,18 +21,6 @@
  * Translation of various region addresses to virtual addresses
  */
 #define __io(a)			((void __iomem *)(PCIO_BASE + (a)))
-#if 1
 #define __mem_pci(a)		(a)
-#else
-
-static inline void __iomem *___mem_pci(void __iomem *p)
-{
-	unsigned long a = (unsigned long)p;
-	BUG_ON(a <= 0xc0000000 || a >= 0xe0000000);
-	return p;
-}
-
-#define __mem_pci(a)		___mem_pci(a)
-#endif
 
 #endif
-- 
1.7.1




More information about the linux-arm-kernel mailing list