public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.9-rc4-mm1] [m32r] Fix smc91x driver for m32r
@ 2004-10-12 10:50 Hirokazu Takata
  2004-10-12 15:51 ` Jeff Garzik
  0 siblings, 1 reply; 9+ messages in thread
From: Hirokazu Takata @ 2004-10-12 10:50 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, takata

Just fix compile error of drivers/net/smc91x.c for m32r.

It seems the previous patch (m32r-trivial-fix-of-smc91xh.patch) is too old. 
So I will send a new patch.

Please drop the previous patch
( $ patch -R1 -p1 <m32r-trivial-fix-of-smc91xh.patch )
and apply the new one.

	* drivers/net/smc91x.h:
	- Add set_irq_type() macro to ignore it for m32r.
	- Fix RPC_LSA_DEFAULT and RPC_LSB_DEFAULT for an M3T-M32700UT board.

Thanks.

Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
---

 drivers/net/smc91x.h |    5 +++++
 1 files changed, 5 insertions(+)


diff -u15 -rNp a/drivers/net/smc91x.h b/drivers/net/smc91x.h
--- a/drivers/net/smc91x.h	2004-10-12 18:26:28.000000000 +0900
+++ b/drivers/net/smc91x.h	2004-10-12 18:38:36.000000000 +0900
@@ -204,30 +204,35 @@ static inline void SMC_outsw (unsigned l
 #define RPC_LSB_DEFAULT		RPC_LED_100_10
 
 #elif   defined(CONFIG_M32R)
 
 #define SMC_CAN_USE_8BIT	0
 #define SMC_CAN_USE_16BIT	1
 #define SMC_CAN_USE_32BIT	0
 
 #define SMC_inb(a, r)		inb((a) + (r) - 0xa0000000)
 #define SMC_inw(a, r)		inw((a) + (r) - 0xa0000000)
 #define SMC_outb(v, a, r)	outb(v, (a) + (r) - 0xa0000000)
 #define SMC_outw(v, a, r)	outw(v, (a) + (r) - 0xa0000000)
 #define SMC_insw(a, r, p, l)	insw((a) + (r) - 0xa0000000, p, l)
 #define SMC_outsw(a, r, p, l)	outsw((a) + (r) - 0xa0000000, p, l)
 
+#define set_irq_type(irq, type)	do {} while(0)
+
+#define RPC_LSA_DEFAULT		RPC_LED_TX_RX
+#define RPC_LSB_DEFAULT		RPC_LED_100_10
+
 #else
 
 #define SMC_CAN_USE_8BIT	1
 #define SMC_CAN_USE_16BIT	1
 #define SMC_CAN_USE_32BIT	1
 #define SMC_NOWAIT		1
 
 #define SMC_inb(a, r)		readb((a) + (r))
 #define SMC_inw(a, r)		readw((a) + (r))
 #define SMC_inl(a, r)		readl((a) + (r))
 #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_insl(a, r, p, l)	readsl((a) + (r), p, l)
 #define SMC_outsl(a, r, p, l)	writesl((a) + (r), p, l)

--
Hirokazu Takata <takata@linux-m32r.org>
Linux/M32R Project:  http://www.linux-m32r.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-10-14 14:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-12 10:50 [PATCH 2.6.9-rc4-mm1] [m32r] Fix smc91x driver for m32r Hirokazu Takata
2004-10-12 15:51 ` Jeff Garzik
2004-10-13  1:52   ` Hirokazu Takata
2004-10-13  2:08     ` Jeff Garzik
2004-10-13  3:15       ` Hirokazu Takata
2004-10-13  5:32         ` Andrew Morton
2004-10-14 10:30           ` Russell King
2004-10-14 13:46             ` Nicolas Pitre
2004-10-14 14:21           ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox