diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-01-30 13:34:06 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:34:06 +0100 |
commit | 5f8681529cb243b3a492e55f2da9d632ad0d5e32 (patch) | |
tree | 8ea316c39d508e828749f5a54c6d0fa66859b6a5 /arch/x86/mm/ioremap.c | |
parent | 266b9f8727976769e2ed2dad77ac9295f37e321e (diff) | |
download | op-kernel-dev-5f8681529cb243b3a492e55f2da9d632ad0d5e32.zip op-kernel-dev-5f8681529cb243b3a492e55f2da9d632ad0d5e32.tar.gz |
x86: fix ioremap API
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm/ioremap.c')
-rw-r--r-- | arch/x86/mm/ioremap.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c index e84c09e..8777bb7 100644 --- a/arch/x86/mm/ioremap.c +++ b/arch/x86/mm/ioremap.c @@ -106,8 +106,8 @@ static int ioremap_change_attr(unsigned long phys_addr, unsigned long size, * have to convert them into an offset in a page-aligned mapping, but the * caller shouldn't need to know that small detail. */ -void __iomem *__ioremap(unsigned long phys_addr, unsigned long size, - unsigned long flags) +static void __iomem *__ioremap(unsigned long phys_addr, unsigned long size, + unsigned long flags) { void __iomem *addr; struct vm_struct *area; @@ -164,7 +164,6 @@ void __iomem *__ioremap(unsigned long phys_addr, unsigned long size, return (void __iomem *) (offset + (char __iomem *)addr); } -EXPORT_SYMBOL(__ioremap); /** * ioremap_nocache - map bus memory into CPU space @@ -193,6 +192,12 @@ void __iomem *ioremap_nocache(unsigned long phys_addr, unsigned long size) } EXPORT_SYMBOL(ioremap_nocache); +void __iomem *ioremap_cache(unsigned long phys_addr, unsigned long size) +{ + return __ioremap(phys_addr, size, 0); +} +EXPORT_SYMBOL(ioremap_cache); + /** * iounmap - Free a IO remapping * @addr: virtual address from ioremap_* |