[ARM] 3/4: Remove asm/hardware.h from SA1100 io.h
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Fri, 28 Oct 2005 13:25:28 +0000 (14:25 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 28 Oct 2005 13:25:28 +0000 (14:25 +0100)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/ioremap.c
drivers/mtd/maps/sa1100-flash.c
include/asm-arm/arch-sa1100/hardware.h
include/asm-arm/arch-sa1100/io.h
include/asm-arm/arch-sa1100/system.h

index 7110e54182b1e146ce6d26254965436cb971d6d4..6fb1258df1b5d03a279bf4023c1b9fb7083abb41 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/vmalloc.h>
 
 #include <asm/cacheflush.h>
+#include <asm/hardware.h>
 #include <asm/io.h>
 #include <asm/tlbflush.h>
 
index 8dcaa357b4bb13bbaba9e543f1b45dc49ce880b3..9133351ba4831859b11951f1938f1a91f02ef838 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/mtd/partitions.h>
 #include <linux/mtd/concat.h>
 
+#include <asm/hardware.h>
 #include <asm/io.h>
 #include <asm/sizes.h>
 #include <asm/mach/flash.h>
index 19c3b1e186bb6f8774704f138f10cb814fce3af4..28711aaa4968b5daa5882f905780ed120793fdee 100644 (file)
 #define UNCACHEABLE_ADDR       0xfa050000
 
 
-/*
- * We requires absolute addresses i.e. (PCMCIA_IO_0_BASE + 0x3f8) for 
- * in*()/out*() macros to be usable for all cases.
- */
-#define PCIO_BASE              0
-
-
 /*
  * SA1100 internal I/O mappings
  *
index 9c8f588f35dba360c386733ca638f050a620b9a3..9d4fe6cf205b1fb9e272e19091c8a902b59aa8ec 100644 (file)
  * We don't actually have real ISA nor PCI buses, but there is so many 
  * drivers out there that might just work if we fake them...
  */
-#define __io(a)                        ((void __iomem *)(PCIO_BASE + (a)))
+static inline void __iomem *__io(unsigned long addr)
+{
+       return (void __iomem *)addr;
+}
+#define __io(a)                        __io(a)
 #define __mem_pci(a)           (a)
 #define __mem_isa(a)           (a)
 
index 6f52118ba1a47a9da2cb8bbeb00266e7967d244a..0f0612f79b2b0924476c0433add323028aa0372e 100644 (file)
@@ -4,6 +4,7 @@
  * Copyright (c) 1999 Nicolas Pitre <nico@cam.org>
  */
 #include <linux/config.h>
+#include <asm/hardware.h>
 
 static inline void arch_idle(void)
 {