patch-2.4.0-test2 linux/drivers/char/wdt.c
Next file: linux/drivers/char/wdt_pci.c
Previous file: linux/drivers/char/vt.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Tue Jun 20 07:37:58 2000
- Orig file:
v2.4.0-test1/linux/drivers/char/wdt.c
- Orig date:
Mon Mar 27 08:08:24 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/char/wdt.c linux/drivers/char/wdt.c
@@ -337,7 +337,6 @@
case WATCHDOG_MINOR:
if(wdt_is_open)
return -EBUSY;
- MOD_INC_USE_COUNT;
/*
* Activate
*/
@@ -353,7 +352,6 @@
outb_p(0, WDT_DC); /* Enable */
return 0;
case TEMP_MINOR:
- MOD_INC_USE_COUNT;
return 0;
default:
return -ENODEV;
@@ -382,7 +380,6 @@
#endif
wdt_is_open=0;
}
- MOD_DEC_USE_COUNT;
return 0;
}
@@ -416,6 +413,7 @@
static struct file_operations wdt_fops = {
+ owner: THIS_MODULE,
llseek: wdt_llseek,
read: wdt_read,
write: wdt_write,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)