patch-2.4.0-test12 linux/drivers/net/natsemi.c
Next file: linux/drivers/net/ne.c
Previous file: linux/drivers/net/mvme147.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Mon Dec 11 13:38:29 2000
- Orig file:
v2.4.0-test11/linux/drivers/net/natsemi.c
- Orig date:
Tue Oct 31 12:42:26 2000
diff -u --recursive --new-file v2.4.0-test11/linux/drivers/net/natsemi.c linux/drivers/net/natsemi.c
@@ -386,6 +386,7 @@
dev = init_etherdev(NULL, sizeof (struct netdev_private));
if (!dev)
return -ENOMEM;
+ SET_MODULE_OWNER(dev);
{
void *mmio;
@@ -559,12 +560,8 @@
/* Do we need to reset the chip??? */
- MOD_INC_USE_COUNT;
-
- if (request_irq(dev->irq, &intr_handler, SA_SHIRQ, dev->name, dev)) {
- MOD_DEC_USE_COUNT;
- return -EAGAIN;
- }
+ i = request_irq(dev->irq, &intr_handler, SA_SHIRQ, dev->name, dev);
+ if (i) return i;
if (debug > 1)
printk(KERN_DEBUG "%s: netdev_open() irq %d.\n",
@@ -1178,8 +1175,6 @@
#if 0
writel(0x0200, ioaddr + ChipConfig); /* Power down Xcvr. */
#endif
-
- 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)