nios2: remove __iounmap
No need to indirect iounmap for nios2. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
9425172ecd
commit
3f3ded99ae
|
@ -26,12 +26,7 @@
|
|||
#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))
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue