Skip to content

Commit 3f3ded9

Browse files
author
Christoph Hellwig
committed
nios2: remove __iounmap
No need to indirect iounmap for nios2. Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent 9425172 commit 3f3ded9

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

‎arch/nios2/include/asm/io.h‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@
2626
#define writel_relaxed(x, addr) writel(x, addr)
2727

2828
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);
3530

3631
/* Pages to physical address... */
3732
#define page_to_phys(page) virt_to_phys(page_to_virt(page))

‎arch/nios2/mm/ioremap.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ void __iomem *ioremap(unsigned long phys_addr, unsigned long size)
157157
EXPORT_SYMBOL(ioremap);
158158

159159
/*
160-
* __iounmap unmaps nearly everything, so be careful
160+
* iounmap unmaps nearly everything, so be careful
161161
* it doesn't free currently pointer/page tables anymore but it
162162
* wasn't used anyway and might be added later.
163163
*/
164-
void __iounmap(void __iomem *addr)
164+
void iounmap(void __iomem *addr)
165165
{
166166
struct vm_struct *p;
167167

@@ -173,4 +173,4 @@ void __iounmap(void __iomem *addr)
173173
pr_err("iounmap: bad address %p\n", addr);
174174
kfree(p);
175175
}
176-
EXPORT_SYMBOL(__iounmap);
176+
EXPORT_SYMBOL(iounmap);

0 commit comments

Comments
 (0)