diff options
Diffstat (limited to 'arch/arm/mm/ioremap.c')
-rw-r--r-- | arch/arm/mm/ioremap.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c index 6780b49f2c69..4f55f5062ab7 100644 --- a/arch/arm/mm/ioremap.c +++ b/arch/arm/mm/ioremap.c | |||
@@ -308,11 +308,15 @@ __arm_ioremap_pfn(unsigned long pfn, unsigned long offset, size_t size, | |||
308 | } | 308 | } |
309 | EXPORT_SYMBOL(__arm_ioremap_pfn); | 309 | EXPORT_SYMBOL(__arm_ioremap_pfn); |
310 | 310 | ||
311 | void __iomem * (*arch_ioremap_caller)(unsigned long, size_t, | ||
312 | unsigned int, void *) = | ||
313 | __arm_ioremap_caller; | ||
314 | |||
311 | void __iomem * | 315 | void __iomem * |
312 | __arm_ioremap(unsigned long phys_addr, size_t size, unsigned int mtype) | 316 | __arm_ioremap(unsigned long phys_addr, size_t size, unsigned int mtype) |
313 | { | 317 | { |
314 | return __arm_ioremap_caller(phys_addr, size, mtype, | 318 | return arch_ioremap_caller(phys_addr, size, mtype, |
315 | __builtin_return_address(0)); | 319 | __builtin_return_address(0)); |
316 | } | 320 | } |
317 | EXPORT_SYMBOL(__arm_ioremap); | 321 | EXPORT_SYMBOL(__arm_ioremap); |
318 | 322 | ||
@@ -371,4 +375,11 @@ void __iounmap(volatile void __iomem *io_addr) | |||
371 | 375 | ||
372 | vunmap(addr); | 376 | vunmap(addr); |
373 | } | 377 | } |
374 | EXPORT_SYMBOL(__iounmap); | 378 | |
379 | void (*arch_iounmap)(volatile void __iomem *) = __iounmap; | ||
380 | |||
381 | void __arm_iounmap(volatile void __iomem *io_addr) | ||
382 | { | ||
383 | arch_iounmap(io_addr); | ||
384 | } | ||
385 | EXPORT_SYMBOL(__arm_iounmap); | ||