Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nios2: remove __iounmap

No need to indirect iounmap for nios2.

Signed-off-by: Christoph Hellwig <hch@lst.de>

+4 -9
+1 -6
arch/nios2/include/asm/io.h
··· 26 26 #define writel_relaxed(x, addr) writel(x, addr) 27 27 28 28 void __iomem *ioremap(unsigned long physaddr, unsigned long size); 29 - extern void __iounmap(void __iomem *addr); 30 - 31 - static inline void iounmap(void __iomem *addr) 32 - { 33 - __iounmap(addr); 34 - } 29 + void iounmap(void __iomem *addr); 35 30 36 31 /* Pages to physical address... */ 37 32 #define page_to_phys(page) virt_to_phys(page_to_virt(page))
+3 -3
arch/nios2/mm/ioremap.c
··· 157 157 EXPORT_SYMBOL(ioremap); 158 158 159 159 /* 160 - * __iounmap unmaps nearly everything, so be careful 160 + * iounmap unmaps nearly everything, so be careful 161 161 * it doesn't free currently pointer/page tables anymore but it 162 162 * wasn't used anyway and might be added later. 163 163 */ 164 - void __iounmap(void __iomem *addr) 164 + void iounmap(void __iomem *addr) 165 165 { 166 166 struct vm_struct *p; 167 167 ··· 173 173 pr_err("iounmap: bad address %p\n", addr); 174 174 kfree(p); 175 175 } 176 - EXPORT_SYMBOL(__iounmap); 176 + EXPORT_SYMBOL(iounmap);