summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-l7200
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-11-30 11:45:54 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-11-30 11:45:54 +0000
commit0560cf5aa51216b06874333a2fa26ca034d97bdb (patch)
tree4feb666ca357b708ec1f13c7bc52284018e107c8 /arch/arm/mach-l7200
parentcd32a48dc5c2f415790bfbc4fe564b2b0e9c2414 (diff)
downloadkernel-crypto-0560cf5aa51216b06874333a2fa26ca034d97bdb.tar.gz
kernel-crypto-0560cf5aa51216b06874333a2fa26ca034d97bdb.tar.xz
kernel-crypto-0560cf5aa51216b06874333a2fa26ca034d97bdb.zip
[ARM] Add a common typesafe __io implementation
As Al did for Versatile in 2ad4f86b60b649fd7428265c08d73a3bd360c81b, add a typesafe __io implementation for platforms to use. Convert platforms to use this new simple typesafe implementation. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-l7200')
-rw-r--r--arch/arm/mach-l7200/include/mach/io.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mach-l7200/include/mach/io.h b/arch/arm/mach-l7200/include/mach/io.h
index 64dc5945981..a770a89fb70 100644
--- a/arch/arm/mach-l7200/include/mach/io.h
+++ b/arch/arm/mach-l7200/include/mach/io.h
@@ -15,11 +15,7 @@
/*
* There are not real ISA nor PCI buses, so we fake it.
*/
-static inline void __iomem *__io(unsigned long addr)
-{
- return (void __iomem *)addr;
-}
-#define __io(a) __io(a)
-#define __mem_pci(a) (a)
+#define __io(a) __typesafe_io(a)
+#define __mem_pci(a) (a)
#endif