aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@linux-m68k.org>2018-03-21 09:36:11 -0400
committerGreg Ungerer <gerg@linux-m68k.org>2018-05-27 19:45:25 -0400
commitfedc33e36406c4e50592a286169583d0d3d25a2e (patch)
tree24088b141527376864d57c0c97ffde9ccb9dfa07
parentb04e217704b7f879c6b91222b066983a44a7a09f (diff)
m68k: move *_relaxed macros into io_no.h and io_mm.h
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>
-rw-r--r--arch/m68k/include/asm/io.h8
-rw-r--r--arch/m68k/include/asm/io_mm.h8
-rw-r--r--arch/m68k/include/asm/io_no.h8
3 files changed, 16 insertions, 8 deletions
diff --git a/arch/m68k/include/asm/io.h b/arch/m68k/include/asm/io.h
index 756089cc019c..00b45155969c 100644
--- a/arch/m68k/include/asm/io.h
+++ b/arch/m68k/include/asm/io.h
@@ -4,11 +4,3 @@
4#else 4#else
5#include <asm/io_mm.h> 5#include <asm/io_mm.h>
6#endif 6#endif
7
8#define readb_relaxed(addr) readb(addr)
9#define readw_relaxed(addr) readw(addr)
10#define readl_relaxed(addr) readl(addr)
11
12#define writeb_relaxed(b, addr) writeb(b, addr)
13#define writew_relaxed(b, addr) writew(b, addr)
14#define writel_relaxed(b, addr) writel(b, addr)
diff --git a/arch/m68k/include/asm/io_mm.h b/arch/m68k/include/asm/io_mm.h
index ed5333e87879..22e778e293c6 100644
--- a/arch/m68k/include/asm/io_mm.h
+++ b/arch/m68k/include/asm/io_mm.h
@@ -524,4 +524,12 @@ static inline void ioport_unmap(void __iomem *p)
524{ 524{
525} 525}
526 526
527#define readb_relaxed(addr) readb(addr)
528#define readw_relaxed(addr) readw(addr)
529#define readl_relaxed(addr) readl(addr)
530
531#define writeb_relaxed(b, addr) writeb(b, addr)
532#define writew_relaxed(b, addr) writew(b, addr)
533#define writel_relaxed(b, addr) writel(b, addr)
534
527#endif /* _IO_H */ 535#endif /* _IO_H */
diff --git a/arch/m68k/include/asm/io_no.h b/arch/m68k/include/asm/io_no.h
index 86f45b403bcc..ffe567e79082 100644
--- a/arch/m68k/include/asm/io_no.h
+++ b/arch/m68k/include/asm/io_no.h
@@ -189,4 +189,12 @@ static inline void ioport_unmap(void __iomem *p)
189 189
190#endif /* __KERNEL__ */ 190#endif /* __KERNEL__ */
191 191
192#define readb_relaxed(addr) readb(addr)
193#define readw_relaxed(addr) readw(addr)
194#define readl_relaxed(addr) readl(addr)
195
196#define writeb_relaxed(b, addr) writeb(b, addr)
197#define writew_relaxed(b, addr) writew(b, addr)
198#define writel_relaxed(b, addr) writel(b, addr)
199
192#endif /* _M68KNOMMU_IO_H */ 200#endif /* _M68KNOMMU_IO_H */