diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-29 21:02:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-29 21:02:10 -0400 |
commit | 820d41cf0cd0e94a5661e093821e2e5c6b36a9d8 (patch) | |
tree | 4d03046048dc52a8fa539c7e7b846e02738d8ca5 /arch/arm/mm/ioremap.c | |
parent | 6268b325c3066234e7bddb99d2b98bcedb0c0033 (diff) | |
parent | 88b48684fe2d4f6207223423227c80d5408bccaf (diff) |
Merge tag 'cleanup2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull "ARM: cleanups of io includes" from Olof Johansson:
"Rob Herring has done a sweeping change cleaning up all of the
mach/io.h includes, moving some of the oft-repeated macros to a common
location and removing a bunch of boiler plate. This is another step
closer to a common zImage for multiple platforms."
Fix up various fairly trivial conflicts (<mach/io.h> removal vs changes
around it, tegra localtimer.o is *still* gone, yadda-yadda).
* tag 'cleanup2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (29 commits)
ARM: tegra: Include assembler.h in sleep.S to fix build break
ARM: pxa: use common IOMEM definition
ARM: dma-mapping: convert ARCH_HAS_DMA_SET_COHERENT_MASK to kconfig symbol
ARM: __io abuse cleanup
ARM: create a common IOMEM definition
ARM: iop13xx: fix missing declaration of iop13xx_init_early
ARM: fix ioremap/iounmap for !CONFIG_MMU
ARM: kill off __mem_pci
ARM: remove bunch of now unused mach/io.h files
ARM: make mach/io.h include optional
ARM: clps711x: remove unneeded include of mach/io.h
ARM: dove: add explicit include of dove.h to addr-map.c
ARM: at91: add explicit include of hardware.h to uncompressor
ARM: ep93xx: clean-up mach/io.h
ARM: tegra: clean-up mach/io.h
ARM: orion5x: clean-up mach/io.h
ARM: davinci: remove unneeded mach/io.h include
[media] davinci: remove includes of mach/io.h
ARM: OMAP: Remove remaining includes for mach/io.h
ARM: msm: clean-up mach/io.h
...
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); | ||