summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/io.h')
-rw-r--r--include/asm-arm/io.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/include/asm-arm/io.h b/include/asm-arm/io.h
index 5f72c4ecd..a726d7afa 100644
--- a/include/asm-arm/io.h
+++ b/include/asm-arm/io.h
@@ -185,17 +185,16 @@ __IO(l,"",long)
#endif
-#ifndef ARCH_READWRITE
+extern void __readwrite_bug(const char *fn);
-/* for panic */
-#include <linux/kernel.h>
+#ifndef ARCH_READWRITE
-#define readb(p) (panic("readb called, but not implemented"),0)
-#define readw(p) (panic("readw called, but not implemented"),0)
-#define readl(p) (panic("readl called, but not implemented"),0)
-#define writeb(v,p) panic("writeb called, but not implemented")
-#define writew(v,p) panic("writew called, but not implemented")
-#define writel(v,p) panic("writel called, but not implemented")
+#define readb(p) (__readwrite_bug("readb"),0)
+#define readw(p) (__readwrite_bug("readw"),0)
+#define readl(p) (__readwrite_bug("readl"),0)
+#define writeb(v,p) __readwrite_bug("writeb")
+#define writew(v,p) __readwrite_bug("writew")
+#define writel(v,p) __readwrite_bug("writel")
#endif