[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200803042319.m24NJQjh002694@imap1.linux-foundation.org>
Date: Tue, 04 Mar 2008 15:19:26 -0800
From: akpm@...ux-foundation.org
To: jeff@...zik.org
Cc: netdev@...r.kernel.org, akpm@...ux-foundation.org,
magnus.damm@...il.com, damm@...l.co.jp, lethal@...ux-sh.org,
nico@....org
Subject: [patch 07/17] smc91x: add insw/outsw to default config
From: Magnus Damm <magnus.damm@...il.com>
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@...l.co.jp>
Acked-by: Nicolas Pitre <nico@....org>
Cc: Paul Mundt <lethal@...ux-sh.org>,
Cc: Jeff Garzik <jeff@...zik.org>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
---
drivers/net/smc91x.h | 2 ++
1 file changed, 2 insertions(+)
diff -puN drivers/net/smc91x.h~smc91x-add-insw-outsw-to-default-config-v2 drivers/net/smc91x.h
--- a/drivers/net/smc91x.h~smc91x-add-insw-outsw-to-default-config-v2
+++ a/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)
_
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists