patch-2.4.0-test12 linux/drivers/net/eth16i.c
Next file: linux/drivers/net/ethertap.c
Previous file: linux/drivers/net/es3210.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Mon Dec 11 13:38:29 2000
- Orig file:
v2.4.0-test11/linux/drivers/net/eth16i.c
- Orig date:
Sun Nov 19 18:44:10 2000
diff -u --recursive --new-file v2.4.0-test11/linux/drivers/net/eth16i.c linux/drivers/net/eth16i.c
@@ -440,8 +440,10 @@
{
int i;
int ioaddr;
- int base_addr = dev ? dev->base_addr : 0;
+ int base_addr = dev->base_addr;
+ SET_MODULE_OWNER(dev);
+
if(eth16i_debug > 4)
printk(KERN_DEBUG "Probing started for %s\n", cardname);
@@ -979,8 +981,6 @@
outw(ETH16I_INTR_ON, ioaddr + TX_INTR_REG);
netif_start_queue(dev);
- MOD_INC_USE_COUNT;
-
return 0;
}
@@ -1006,8 +1006,6 @@
/* outw(0xffff, ioaddr + TX_STATUS_REG); */
outb(0x00, ioaddr + CONFIG_REG_1);
-
- 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)