patch-2.4.0-test12 linux/drivers/net/mvme147.c
Next file: linux/drivers/net/natsemi.c
Previous file: linux/drivers/net/lne390.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Mon Dec 11 13:38:29 2000
- Orig file:
v2.4.0-test11/linux/drivers/net/mvme147.c
- Orig date:
Thu Aug 26 14:28:33 1999
diff -u --recursive --new-file v2.4.0-test11/linux/drivers/net/mvme147.c linux/drivers/net/mvme147.c
@@ -79,9 +79,11 @@
u_long address;
if (!MACH_IS_MVME147 || called)
- return(ENODEV);
+ return(-ENODEV);
called++;
+ SET_MODULE_OWNER(dev);
+
dev->priv = kmalloc(sizeof(struct m147lance_private), GFP_KERNEL);
if (dev->priv == NULL)
return -ENOMEM;
@@ -173,7 +175,6 @@
m147_pcc->lan_cntrl=0; /* clear the interrupts (if any) */
m147_pcc->lan_cntrl=0x08 | 0x04; /* Enable irq 4 */
- MOD_INC_USE_COUNT;
return 0;
}
@@ -182,7 +183,6 @@
/* disable interrupts at boardlevel */
m147_pcc->lan_cntrl=0x0; /* disable interrupts */
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)