Skip to contentSkip to conversation

smc91x: add insw/outsw to default config

PATCH Applied [email protected] 1 participant 1 message Mar 4, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 7/17 smc91x: add insw/outsw to default config

From: Magnus Damm <[email protected]>

This patch makes sure SMC_insw()/SMC_outsw() are defined for the default configuration. Without this change BUG()s will be triggered when using 16-bit only platform data and the default configuration.

---

 drivers/net/smc91x.h |    2 ++
 1 file changed, 2 insertions(+)
drivers/net/smc91x.h renamed from drivers/net/smc91x.h~smc91x-add-insw-outsw-to-default-config-v2 +2 -0
diff -puN drivers/net/smc91x.h~smc91x-add-insw-outsw-to-default-config-v2 drivers/net/smc91x.h
@@ -476,6 +476,8 @@ static inline void LPD7_SMC_outsw (unsig
 #define SMC_outb(v, a, r)	writeb(v, (a) + (r))
 #define SMC_outw(v, a, r)	writew(v, (a) + (r))
 #define SMC_outl(v, a, r)	writel(v, (a) + (r))
+#define SMC_insw(a, r, p, l)	readsw((a) + (r), p, l)
+#define SMC_outsw(a, r, p, l)	writesw((a) + (r), p, l)
 #define SMC_insl(a, r, p, l)	readsl((a) + (r), p, l)
 #define SMC_outsl(a, r, p, l)	writesl((a) + (r), p, l)
 

_