nios2: remove __ioremap
The cacheflag argument to __ioremap is always 0, so just implement ioremap directly. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -25,29 +25,17 @@
|
||||
#define writew_relaxed(x, addr) writew(x, addr)
|
||||
#define writel_relaxed(x, addr) writel(x, addr)
|
||||
|
||||
extern void __iomem *__ioremap(unsigned long physaddr, unsigned long size,
|
||||
unsigned long cacheflag);
|
||||
void __iomem *ioremap(unsigned long physaddr, unsigned long size);
|
||||
extern void __iounmap(void __iomem *addr);
|
||||
|
||||
static inline void __iomem *ioremap(unsigned long physaddr, unsigned long size)
|
||||
{
|
||||
return __ioremap(physaddr, size, 0);
|
||||
}
|
||||
|
||||
static inline void __iomem *ioremap_nocache(unsigned long physaddr,
|
||||
unsigned long size)
|
||||
{
|
||||
return __ioremap(physaddr, size, 0);
|
||||
}
|
||||
|
||||
static inline void iounmap(void __iomem *addr)
|
||||
{
|
||||
__iounmap(addr);
|
||||
}
|
||||
|
||||
#define ioremap_nocache ioremap_nocache
|
||||
#define ioremap_wc ioremap_nocache
|
||||
#define ioremap_wt ioremap_nocache
|
||||
#define ioremap_nocache ioremap
|
||||
#define ioremap_wc ioremap
|
||||
#define ioremap_wt ioremap
|
||||
|
||||
/* Pages to physical address... */
|
||||
#define page_to_phys(page) virt_to_phys(page_to_virt(page))
|
||||
|
Reference in New Issue
Block a user