summaryrefslogtreecommitdiff
path: root/arch/m68k/include/asm/io_no.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/include/asm/io_no.h')
-rw-r--r--arch/m68k/include/asm/io_no.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/io_no.h b/arch/m68k/include/asm/io_no.h
index 5095693e46ce..e9c70f754e02 100644
--- a/arch/m68k/include/asm/io_no.h
+++ b/arch/m68k/include/asm/io_no.h
@@ -25,6 +25,18 @@
#define writew __raw_writew
#define writel __raw_writel
+/*
+ * These are defined in kmap.h as static inline functions. To maintain
+ * previous behavior we put these define guards here so io_mm.h doesn't
+ * see them.
+ */
+#ifdef CONFIG_MMU
+#define memset_io memset_io
+#define memcpy_fromio memcpy_fromio
+#define memcpy_toio memcpy_toio
+#endif
+
+#include <asm/kmap.h>
#include <asm/virtconvert.h>
#include <asm-generic/io.h>