]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
m68k: move *_relaxed macros into io_no.h and io_mm.h
authorGreg Ungerer <gerg@linux-m68k.org>
Wed, 21 Mar 2018 13:36:11 +0000 (23:36 +1000)
committerGreg Ungerer <gerg@linux-m68k.org>
Sun, 27 May 2018 23:45:25 +0000 (09:45 +1000)
Move a copy of the definitions of the *_relaxed() macros into io_no.h
and io_mm.h. This precedes a change to the io_no.h file to use
asm-generic/io.h. They will be removed from io_no.h at that point.

Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Angelo Dureghello <angelo@sysam.it>
Tested-by: Angelo Dureghello <angelo@sysam.it>
arch/m68k/include/asm/io.h
arch/m68k/include/asm/io_mm.h
arch/m68k/include/asm/io_no.h

index 756089cc019cca08259230ba6c7688d3e06ad690..00b45155969c81ab32d648d46bb20f51bc17343e 100644 (file)
@@ -4,11 +4,3 @@
 #else
 #include <asm/io_mm.h>
 #endif
-
-#define readb_relaxed(addr)    readb(addr)
-#define readw_relaxed(addr)    readw(addr)
-#define readl_relaxed(addr)    readl(addr)
-
-#define writeb_relaxed(b, addr)        writeb(b, addr)
-#define writew_relaxed(b, addr)        writew(b, addr)
-#define writel_relaxed(b, addr)        writel(b, addr)
index ed5333e87879b40781ba233ff07276dca5a0f408..22e778e293c63a57d32b3ad32b526d44dae0d411 100644 (file)
@@ -524,4 +524,12 @@ static inline void ioport_unmap(void __iomem *p)
 {
 }
 
+#define readb_relaxed(addr)    readb(addr)
+#define readw_relaxed(addr)    readw(addr)
+#define readl_relaxed(addr)    readl(addr)
+
+#define writeb_relaxed(b, addr)        writeb(b, addr)
+#define writew_relaxed(b, addr)        writew(b, addr)
+#define writel_relaxed(b, addr)        writel(b, addr)
+
 #endif /* _IO_H */
index 86f45b403bcc8d287c9178569328b0edd502f4fd..ffe567e79082e68c0fafe86621314d6dccda7e1d 100644 (file)
@@ -189,4 +189,12 @@ static inline void ioport_unmap(void __iomem *p)
 
 #endif /* __KERNEL__ */
 
+#define readb_relaxed(addr)    readb(addr)
+#define readw_relaxed(addr)    readw(addr)
+#define readl_relaxed(addr)    readl(addr)
+
+#define writeb_relaxed(b, addr)        writeb(b, addr)
+#define writew_relaxed(b, addr)        writew(b, addr)
+#define writel_relaxed(b, addr)        writel(b, addr)
+
 #endif /* _M68KNOMMU_IO_H */