patch-2.3.47 linux/drivers/net/pcmcia/3c575_cb.c
Next file: linux/drivers/net/pcmcia/3c589_cs.c
Previous file: linux/drivers/net/pcmcia/3c574_cs.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Feb 17 09:18:47 2000
- Orig file:
v2.3.46/linux/drivers/net/pcmcia/3c575_cb.c
- Orig date:
Sun Feb 13 19:29:04 2000
diff -u --recursive --new-file v2.3.46/linux/drivers/net/pcmcia/3c575_cb.c linux/drivers/net/pcmcia/3c575_cb.c
@@ -1845,7 +1845,7 @@
long ioaddr = dev->base_addr;
int i;
- if (test_bit(LINK_STATE_START, &dev->state))
+ if (netif_device_present(dev))
vortex_down(dev);
if (vortex_debug > 1) {
@@ -1883,7 +1883,7 @@
struct vortex_private *vp = (struct vortex_private *)dev->priv;
unsigned long flags;
- if (test_bit(LINK_STATE_START, &dev->state)) {
+ if (netif_device_present(dev)) {
spin_lock_irqsave (&vp->lock, flags);
update_stats(dev->base_addr, dev);
spin_unlock_irqrestore (&vp->lock, flags);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)