[PATCH 04/04] smc91x: add insw/outsw to default config

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Magnus Damm
Date: Wednesday, February 20, 2008 - 2:58 am

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.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
---

 drivers/net/smc91x.h |    2 ++
 1 file changed, 2 insertions(+)

--- 0019/drivers/net/smc91x.h
+++ work/drivers/net/smc91x.h	2008-02-20 17:11:19.000000000 +0900
@@ -446,6 +446,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)
 
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 01/04] smc91x: pass along private data, Magnus Damm, (Wed Feb 20, 2:57 am)
[PATCH 02/04] smc91x: introduce platform data flags, Magnus Damm, (Wed Feb 20, 2:58 am)
[PATCH 03/04] smc91x: make superh use default config, Magnus Damm, (Wed Feb 20, 2:58 am)
[PATCH 04/04] smc91x: add insw/outsw to default config, Magnus Damm, (Wed Feb 20, 2:58 am)
Re: [PATCH 01/04] smc91x: pass along private data, Nicolas Pitre, (Wed Feb 20, 8:42 am)
Re: [PATCH 02/04] smc91x: introduce platform data flags, Nicolas Pitre, (Wed Feb 20, 8:58 am)
Re: [PATCH 01/04] smc91x: pass along private data, Magnus Damm, (Wed Feb 20, 7:14 pm)
Re: [PATCH 02/04] smc91x: introduce platform data flags, Nicolas Pitre, (Wed Feb 20, 8:28 pm)
Re: [PATCH 01/04] smc91x: pass along private data, Nicolas Pitre, (Wed Feb 20, 8:35 pm)