]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ARM: fix ioremap/iounmap for !CONFIG_MMU
authorRob Herring <rob.herring@calxeda.com>
Sun, 11 Mar 2012 03:24:04 +0000 (21:24 -0600)
committerRob Herring <rob.herring@calxeda.com>
Sun, 11 Mar 2012 20:59:13 +0000 (15:59 -0500)
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>
arch/arm/mm/nommu.c

index 4fc6794cca4bfd0d0364000119df7722c6c85c8b..6486d2f253cdd9dba5758d4402b11746dc0bda0a 100644 (file)
@@ -86,13 +86,17 @@ void __iomem *__arm_ioremap(unsigned long phys_addr, size_t size,
 }
 EXPORT_SYMBOL(__arm_ioremap);
 
+void __iomem * (*arch_ioremap_caller)(unsigned long, size_t, unsigned int, void *);
+
 void __iomem *__arm_ioremap_caller(unsigned long phys_addr, size_t size,
                                   unsigned int mtype, void *caller)
 {
        return __arm_ioremap(phys_addr, size, mtype);
 }
 
-void __iounmap(volatile void __iomem *addr)
+void (*arch_iounmap)(volatile void __iomem *);
+
+void __arm_iounmap(volatile void __iomem *addr)
 {
 }
-EXPORT_SYMBOL(__iounmap);
+EXPORT_SYMBOL(__arm_iounmap);