patch-2.3.47 linux/drivers/net/3c515.c

Next file: linux/drivers/net/3c523.c
Previous file: linux/drivers/net/3c507.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/drivers/net/3c515.c linux/drivers/net/3c515.c
@@ -1081,8 +1081,7 @@
 		   other interrupt problems. */
 		if (donedidthis++ > 100) {
 			printk(KERN_ERR "%s: Bogus interrupt, bailing. Status %4.4x, start=%d.\n",
-				dev->name, status,
-				test_bit(LINK_STATE_START, &dev->state));
+				   dev->name, status, netif_running(dev));
 			free_irq(dev->irq, dev);
 		}
 	}
@@ -1426,7 +1425,7 @@
 	    (struct corkscrew_private *) dev->priv;
 	unsigned long flags;
 
-	if (test_bit(LINK_STATE_START, &dev->state)) {
+	if (netif_running(dev)) {
 		save_flags(flags);
 		cli();
 		update_stats(dev->base_addr, dev);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)