patch-2.4.0-test12 linux/drivers/net/ne.c
Next file: linux/drivers/net/ne2.c
Previous file: linux/drivers/net/natsemi.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Tue Dec 5 12:29:38 2000
- Orig file:
v2.4.0-test11/linux/drivers/net/ne.c
- Orig date:
Sun Nov 19 18:44:11 2000
diff -u --recursive --new-file v2.4.0-test11/linux/drivers/net/ne.c linux/drivers/net/ne.c
@@ -157,7 +157,9 @@
int __init ne_probe(struct net_device *dev)
{
- unsigned int base_addr = dev ? dev->base_addr : 0;
+ unsigned int base_addr = dev->base_addr;
+
+ SET_MODULE_OWNER(dev);
/* First check any supplied i/o locations. User knows best. <cough> */
if (base_addr > 0x1ff) /* Check a single specified location. */
@@ -469,7 +471,6 @@
static int ne_open(struct net_device *dev)
{
ei_open(dev);
- MOD_INC_USE_COUNT;
return 0;
}
@@ -478,7 +479,6 @@
if (ei_debug > 1)
printk(KERN_DEBUG "%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)