diff options
author | Rob Herring <rob.herring@calxeda.com> | 2012-03-10 22:24:04 -0500 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2012-03-11 16:59:13 -0400 |
commit | 8a2b6255dd11eee1b27d1be394241abf1871b610 (patch) | |
tree | 176fe3a486861176d8dbc73adecb6809528f65b7 /arch/arm/mm | |
parent | 5621caac1d9514b568f986b55ce5494b1d119d40 (diff) |
ARM: fix ioremap/iounmap for !CONFIG_MMU
With commit 4fe7ef3a081 (ARM: provide runtime hook for ioremap/iounmap),
compiles with !CONFIG_MMU were broken. Rename nommu __iounmap to
__arm_iounmap and add arch_ioremap_caller and arch_iounmap. Its
not expected that these need to be overriden for !CONFIG_MMU, so setting
the function ptrs has no effect in this case.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Russell King <linux@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/nommu.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mm/nommu.c b/arch/arm/mm/nommu.c index 4fc6794cca4b..6486d2f253cd 100644 --- a/arch/arm/mm/nommu.c +++ b/arch/arm/mm/nommu.c | |||
@@ -86,13 +86,17 @@ void __iomem *__arm_ioremap(unsigned long phys_addr, size_t size, | |||
86 | } | 86 | } |
87 | EXPORT_SYMBOL(__arm_ioremap); | 87 | EXPORT_SYMBOL(__arm_ioremap); |
88 | 88 | ||
89 | void __iomem * (*arch_ioremap_caller)(unsigned long, size_t, unsigned int, void *); | ||
90 | |||
89 | void __iomem *__arm_ioremap_caller(unsigned long phys_addr, size_t size, | 91 | void __iomem *__arm_ioremap_caller(unsigned long phys_addr, size_t size, |
90 | unsigned int mtype, void *caller) | 92 | unsigned int mtype, void *caller) |
91 | { | 93 | { |
92 | return __arm_ioremap(phys_addr, size, mtype); | 94 | return __arm_ioremap(phys_addr, size, mtype); |
93 | } | 95 | } |
94 | 96 | ||
95 | void __iounmap(volatile void __iomem *addr) | 97 | void (*arch_iounmap)(volatile void __iomem *); |
98 | |||
99 | void __arm_iounmap(volatile void __iomem *addr) | ||
96 | { | 100 | { |
97 | } | 101 | } |
98 | EXPORT_SYMBOL(__iounmap); | 102 | EXPORT_SYMBOL(__arm_iounmap); |