nios2: remove __iounmap
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Aug 2019 06:11:46 +0000 (08:11 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Nov 2019 20:18:19 +0000 (21:18 +0100)
No need to indirect iounmap for nios2.

Signed-off-by: Christoph Hellwig <hch@lst.de>
arch/nios2/include/asm/io.h
arch/nios2/mm/ioremap.c

index d108937c321eb3b8fcc464a4ae5628632d660aa1..746853ac7d8d382a7e21c182cb8162959dcd6ead 100644 (file)
 #define writel_relaxed(x, addr)        writel(x, addr)
 
 void __iomem *ioremap(unsigned long physaddr, unsigned long size);
-extern void __iounmap(void __iomem *addr);
-
-static inline void iounmap(void __iomem *addr)
-{
-       __iounmap(addr);
-}
+void iounmap(void __iomem *addr);
 
 /* Pages to physical address... */
 #define page_to_phys(page)     virt_to_phys(page_to_virt(page))
index 7a1a27f3daa3b08ae20fae6ca0a54450673b5096..b56af759dcdfcc2b8c3d19ff7bfed99bda0ddde2 100644 (file)
@@ -157,11 +157,11 @@ void __iomem *ioremap(unsigned long phys_addr, unsigned long size)
 EXPORT_SYMBOL(ioremap);
 
 /*
- * __iounmap unmaps nearly everything, so be careful
+ * iounmap unmaps nearly everything, so be careful
  * it doesn't free currently pointer/page tables anymore but it
  * wasn't used anyway and might be added later.
  */
-void __iounmap(void __iomem *addr)
+void iounmap(void __iomem *addr)
 {
        struct vm_struct *p;
 
@@ -173,4 +173,4 @@ void __iounmap(void __iomem *addr)
                pr_err("iounmap: bad address %p\n", addr);
        kfree(p);
 }
-EXPORT_SYMBOL(__iounmap);
+EXPORT_SYMBOL(iounmap);