summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-versatile/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/arch-versatile/io.h')
-rw-r--r--include/asm-arm/arch-versatile/io.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-arm/arch-versatile/io.h b/include/asm-arm/arch-versatile/io.h
index 9f895bf..47e904c 100644
--- a/include/asm-arm/arch-versatile/io.h
+++ b/include/asm-arm/arch-versatile/io.h
@@ -22,7 +22,11 @@
#define IO_SPACE_LIMIT 0xffffffff
-#define __io(a) ((void __iomem *)(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)
OpenPOWER on IntegriCloud