]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
m68k: Simplify ioremap_nocache()
authorChristoph Hellwig <hch@lst.de>
Sat, 17 Aug 2019 07:32:35 +0000 (09:32 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 2 Sep 2019 07:50:26 +0000 (09:50 +0200)
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>
arch/m68k/include/asm/kmap.h

index aac7f045f7f0aa8509cf5ef288f8030de8276bce..6354380a4b4e3b09ecd7076e35e145b720772b11 100644 (file)
@@ -28,14 +28,8 @@ static inline void __iomem *ioremap(unsigned long physaddr, unsigned long size)
        return __ioremap(physaddr, size, IOMAP_NOCACHE_SER);
 }
 
-#define ioremap_nocache ioremap_nocache
-static inline void __iomem *ioremap_nocache(unsigned long physaddr,
-                                           unsigned long size)
-{
-       return __ioremap(physaddr, size, IOMAP_NOCACHE_SER);
-}
-
-#define ioremap_uc ioremap_nocache
+#define ioremap_nocache ioremap
+#define ioremap_uc ioremap
 #define ioremap_wt ioremap_wt
 static inline void __iomem *ioremap_wt(unsigned long physaddr,
                                       unsigned long size)