arm64: ioremap: add ioremap_cache macro
authoryalin wang <yalin.wang2010@gmail.com>
Mon, 12 Oct 2015 02:28:18 +0000 (10:28 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 13 Oct 2015 14:10:25 +0000 (15:10 +0100)
Add ioremap_cache macro, because some code will test if this macro
is defined or not, and will generate a generric version if not defined,
for example, memremap.c do like this.

Signed-off-by: yalin wang <yalin.wang2010@gmail.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/io.h

index 44be1e03ed656f2e2c5b183b7c75e1eb41800b5f..d6b620c9a1125c5e3f3ecb67bf1ecf75abbdb1ab 100644 (file)
@@ -172,6 +172,7 @@ extern void __iomem *ioremap_cache(phys_addr_t phys_addr, size_t size);
 #define ioremap_wc(addr, size)         __ioremap((addr), (size), __pgprot(PROT_NORMAL_NC))
 #define ioremap_wt(addr, size)         __ioremap((addr), (size), __pgprot(PROT_DEVICE_nGnRE))
 #define iounmap                                __iounmap
+#define ioremap_cache                  ioremap_cache
 
 /*
  * io{read,write}{16,32}be() macros