patch-2.4.0-test12 linux/drivers/net/fmv18x.c
Next file: linux/drivers/net/hamachi.c
Previous file: linux/drivers/net/ewrk3.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon Dec 11 13:38:29 2000
- Orig file:
v2.4.0-test11/linux/drivers/net/fmv18x.c
- Orig date:
Sun Nov 19 18:44:10 2000
diff -u --recursive --new-file v2.4.0-test11/linux/drivers/net/fmv18x.c linux/drivers/net/fmv18x.c
@@ -134,6 +134,8 @@
int i;
int base_addr = dev->base_addr;
+ SET_MODULE_OWNER(dev);
+
if (base_addr > 0x1ff) /* Check a single specified location. */
return fmv18x_probe1(dev, base_addr);
else if (base_addr != 0) /* Don't probe at all. */
@@ -319,8 +321,6 @@
/* Enable both Tx and Rx interrupts */
outw(0x8182, ioaddr+TX_INTR);
- MOD_INC_USE_COUNT;
-
return 0;
}
@@ -568,8 +568,6 @@
/* Power-down the chip. Green, green, green! */
outb(0x00, ioaddr + CONFIG_1);
-
- MOD_DEC_USE_COUNT;
/* Set the ethernet adaptor disable IRQ */
outb(0x00, ioaddr + FJ_CONFIG1);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)