ARM: rockchip: iomap.h: fix compilation error on arm64
author黄涛 <huangtao@rock-chips.com>
Thu, 23 Oct 2014 09:05:46 +0000 (17:05 +0800)
committer黄涛 <huangtao@rock-chips.com>
Thu, 23 Oct 2014 09:05:46 +0000 (17:05 +0800)
include/linux/rockchip/iomap.h

index 31a58d5551eadae73cc5e5bc863d8cf0641a2468..f8785fa69803f2217bb9521d0400d9d9c8a60fc6 100755 (executable)
@@ -5,7 +5,11 @@
 #include <asm/io.h>
 #endif
 
+#ifdef IOMEM
 #define RK_IO_ADDRESS(x)                IOMEM(0xFED00000 + x)
+#else
+#define RK_IO_ADDRESS(x)                ((void __force __iomem *)(0xFED00000 + x))
+#endif
 
 #define RK_CRU_VIRT                     RK_IO_ADDRESS(0x00000000)
 #define RK_GRF_VIRT                     RK_IO_ADDRESS(0x00010000)