m68k: Simplify ioremap_nocache()
Just define ioremap_nocache to ioremap instead of duplicating the inline. Also define ioremap_uc in terms of ioremap instead of using a double indirection. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20190817073253.27819-9-hch@lst.de Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
parent
49ff824a02
commit
2cecd1f11c
|
@ -28,14 +28,8 @@ static inline void __iomem *ioremap(unsigned long physaddr, unsigned long size)
|
||||||
return __ioremap(physaddr, size, IOMAP_NOCACHE_SER);
|
return __ioremap(physaddr, size, IOMAP_NOCACHE_SER);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ioremap_nocache ioremap_nocache
|
#define ioremap_nocache ioremap
|
||||||
static inline void __iomem *ioremap_nocache(unsigned long physaddr,
|
#define ioremap_uc ioremap
|
||||||
unsigned long size)
|
|
||||||
{
|
|
||||||
return __ioremap(physaddr, size, IOMAP_NOCACHE_SER);
|
|
||||||
}
|
|
||||||
|
|
||||||
#define ioremap_uc ioremap_nocache
|
|
||||||
#define ioremap_wt ioremap_wt
|
#define ioremap_wt ioremap_wt
|
||||||
static inline void __iomem *ioremap_wt(unsigned long physaddr,
|
static inline void __iomem *ioremap_wt(unsigned long physaddr,
|
||||||
unsigned long size)
|
unsigned long size)
|
||||||
|
|
Loading…
Reference in New Issue