public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PATCH: eepro100 oops on 2.4.20
@ 2003-04-03 19:24 Nicholas Henke
  2003-04-03 19:47 ` Jeff Garzik
  2003-04-04 14:42 ` James Bourne
  0 siblings, 2 replies; 4+ messages in thread
From: Nicholas Henke @ 2003-04-03 19:24 UTC (permalink / raw)
  To: jgarzik; +Cc: linux-kernel

Below is the patch that fixes an oops on 2.4.20 when insmod'ing eepro100.
 Looks like a trivial 'oops forgot to replace those' case.

---------------------start patch----------------------------------
diff -urN clean/drivers/net/eepro100.c linux-2.4/drivers/net/eepro100.c
--- clean/drivers/net/eepro100.c	Thu Apr  3 23:21:47 2003
+++ linux-2.4/drivers/net/eepro100.c	Thu Apr  3 23:25:09 2003
@@ -788,10 +788,10 @@
 					   ((option & 0x20) ? 0x2000 : 0) | 	/* 100mbps? */
 					   ((option & 0x10) ? 0x0100 : 0)); /* Full duplex? */
 		} else {
-			int mii_bmcrctrl = mdio_read(ioaddr, eeprom[6] & 0x1f, 0);
+			int mii_bmcrctrl = mdio_read(dev, eeprom[6] & 0x1f, 0);
 			/* Reset out of a transceiver left in 10baseT-fixed mode. */
 			if ((mii_bmcrctrl & 0x3100) == 0)
-				mdio_write(ioaddr, eeprom[6] & 0x1f, 0, 0x8000);
+				mdio_write(dev, eeprom[6] & 0x1f, 0, 0x8000);
 		}
 
 		/* Perform a system self-test. */
------------------end----------------------------------------------------------
Nic

P.S Please cc me on any replies to lkml -- I am not on the list
-- 
Nicholas Henke
Penguin Herder & Linux Cluster System Programmer
Liniac Project - Univ. of Pennsylvania

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

end of thread, other threads:[~2003-04-04 14:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-03 19:24 PATCH: eepro100 oops on 2.4.20 Nicholas Henke
2003-04-03 19:47 ` Jeff Garzik
2003-04-04 14:42 ` James Bourne
2003-04-04 14:50   ` Nicholas Henke

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