patch-2.4.0-test12 linux/drivers/net/sk_mca.c
Next file: linux/drivers/net/slip.c
Previous file: linux/drivers/net/sis900.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Mon Dec 11 13:38:29 2000
- Orig file:
v2.4.0-test11/linux/drivers/net/sk_mca.c
- Orig date:
Tue Jul 18 16:09:27 2000
diff -u --recursive --new-file v2.4.0-test11/linux/drivers/net/sk_mca.c linux/drivers/net/sk_mca.c
@@ -879,9 +879,6 @@
dev->interrupt = 0;
dev->tbusy = 0;
dev->start = 0;
-#endif
-
-#ifdef MODULE
MOD_INC_USE_COUNT;
#endif
@@ -900,7 +897,7 @@
free_irq(dev->irq, dev);
dev->irq = 0;
-#ifdef MODULE
+#if (LINUX_VERSION_CODE < 0x02032a)
MOD_DEC_USE_COUNT;
#endif
@@ -1086,6 +1083,8 @@
if (MCA_bus == 0)
return -ENODEV;
+
+ SET_MODULE_OWNER(dev);
/* start address of 1 --> forced detection */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)