[PATCH 2/9] ARM: ebsa110: Properly override I/O accessors
From: Thierry Reding
Date: Mon Oct 06 2014 - 09:55:09 EST
From: Thierry Reding <treding@xxxxxxxxxx>
In order to override accessors properly they must be #define'd so that
subsequent generic headers (the one for ARM and finally the architecture
independent one) can properly detect it.
Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>
---
arch/arm/mach-ebsa110/include/mach/io.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/mach-ebsa110/include/mach/io.h b/arch/arm/mach-ebsa110/include/mach/io.h
index 11bb0799424b..c15c1a89cb13 100644
--- a/arch/arm/mach-ebsa110/include/mach/io.h
+++ b/arch/arm/mach-ebsa110/include/mach/io.h
@@ -62,20 +62,31 @@ void __writel(u32 val, void __iomem *addr);
#define writew(v,b) __writew(v,b)
#define writel(v,b) __writel(v,b)
+#define insb insb
extern void insb(unsigned int port, void *buf, int sz);
+#define insw insw
extern void insw(unsigned int port, void *buf, int sz);
+#define insl insl
extern void insl(unsigned int port, void *buf, int sz);
+#define outsb outsb
extern void outsb(unsigned int port, const void *buf, int sz);
+#define outsw outsw
extern void outsw(unsigned int port, const void *buf, int sz);
+#define outsl outsl
extern void outsl(unsigned int port, const void *buf, int sz);
/* can't support writesb atm */
+#define writesw writesw
extern void writesw(void __iomem *addr, const void *data, int wordlen);
+#define writesl writesl
extern void writesl(void __iomem *addr, const void *data, int longlen);
/* can't support readsb atm */
+#define readsw readsw
extern void readsw(const void __iomem *addr, void *data, int wordlen);
+
+#define readsl readsl
extern void readsl(const void __iomem *addr, void *data, int longlen);
#endif
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/