patch-2.4.0-test12 linux/drivers/net/ne2.c
Next file: linux/drivers/net/ne2k-pci.c
Previous file: linux/drivers/net/ne.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Tue Dec 5 12:29:38 2000
- Orig file:
v2.4.0-test11/linux/drivers/net/ne2.c
- Orig date:
Sun Nov 19 18:44:11 2000
diff -u --recursive --new-file v2.4.0-test11/linux/drivers/net/ne2.c linux/drivers/net/ne2.c
@@ -152,6 +152,8 @@
int i;
int adapter_found = 0;
+ SET_MODULE_OWNER(dev);
+
/* Do not check any supplied i/o locations.
POS registers usually don't fail :) */
@@ -371,7 +373,6 @@
static int ne_open(struct net_device *dev)
{
ei_open(dev);
- MOD_INC_USE_COUNT;
return 0;
}
@@ -380,7 +381,6 @@
if (ei_debug > 1)
printk("%s: Shutting down ethercard.\n", dev->name);
ei_close(dev);
- MOD_DEC_USE_COUNT;
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)