From: Daniel Kiper Date: Mon, 30 Jun 2014 17:52:55 +0000 (+0200) Subject: arch/ia64: Define early_memunmap() X-Git-Tag: v3.17-rc1~131^2~16 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4fa62481e231111373418f0d95dd1f24f6e83321;p=karo-tx-linux.git arch/ia64: Define early_memunmap() This is odd to use early_iounmap() function do tear down mapping created by early_memremap() function, even if it works right now, because they belong to different set of functions. The former is I/O related function and the later is memory related. So, create early_memunmap() macro which in real is early_iounmap(). This thing will help to not confuse code readers longer by mixing functions from different classes. EFI patches following this patch uses that functionality. Signed-off-by: Daniel Kiper Cc: Tony Luck Signed-off-by: Matt Fleming --- diff --git a/arch/ia64/include/asm/io.h b/arch/ia64/include/asm/io.h index 0d2bcb37ec35..bee0acd52f7e 100644 --- a/arch/ia64/include/asm/io.h +++ b/arch/ia64/include/asm/io.h @@ -426,6 +426,7 @@ extern void iounmap (volatile void __iomem *addr); extern void __iomem * early_ioremap (unsigned long phys_addr, unsigned long size); #define early_memremap(phys_addr, size) early_ioremap(phys_addr, size) extern void early_iounmap (volatile void __iomem *addr, unsigned long size); +#define early_memunmap(addr, size) early_iounmap(addr, size) static inline void __iomem * ioremap_cache (unsigned long phys_addr, unsigned long size) { return ioremap(phys_addr, size);