patch-2.4.0-test12 linux/drivers/net/hplance.c

Next file: linux/drivers/net/ibmlana.c
Previous file: linux/drivers/net/hp100.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test11/linux/drivers/net/hplance.c linux/drivers/net/hplance.c
@@ -116,6 +116,7 @@
 		return -ENOMEM;
 	memset(dev->priv, 0, sizeof(struct hplance_private));
 #endif
+	SET_MODULE_OWNER(dev);
 
         printk("%s: HP LANCE; select code %d, addr", dev->name, scode);
 
@@ -212,7 +213,6 @@
         /* enable interrupts at board level. */
         writeb(LE_IE, &(hpregs->status));
 
-        MOD_INC_USE_COUNT;
         return 0;
 }
 
@@ -222,7 +222,6 @@
         struct hplance_reg *hpregs = (struct hplance_reg *)lp->base;
         writeb(0,&(hpregs->status));              /* disable interrupts at boardlevel */
         lance_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)