diff options
author | Daniel Kiper <daniel.kiper@oracle.com> | 2014-06-30 13:52:55 -0400 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2014-07-18 16:23:53 -0400 |
commit | 4fa62481e231111373418f0d95dd1f24f6e83321 (patch) | |
tree | 14277cfafeb7511aac7d51eed805aa7dd06c012d /arch/ia64 | |
parent | 44be28e9dd9880dca3e2cbf7a844f2114e67f2cb (diff) |
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 <daniel.kiper@oracle.com>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/include/asm/io.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); | |||
426 | extern void __iomem * early_ioremap (unsigned long phys_addr, unsigned long size); | 426 | extern void __iomem * early_ioremap (unsigned long phys_addr, unsigned long size); |
427 | #define early_memremap(phys_addr, size) early_ioremap(phys_addr, size) | 427 | #define early_memremap(phys_addr, size) early_ioremap(phys_addr, size) |
428 | extern void early_iounmap (volatile void __iomem *addr, unsigned long size); | 428 | extern void early_iounmap (volatile void __iomem *addr, unsigned long size); |
429 | #define early_memunmap(addr, size) early_iounmap(addr, size) | ||
429 | static inline void __iomem * ioremap_cache (unsigned long phys_addr, unsigned long size) | 430 | static inline void __iomem * ioremap_cache (unsigned long phys_addr, unsigned long size) |
430 | { | 431 | { |
431 | return ioremap(phys_addr, size); | 432 | return ioremap(phys_addr, size); |