patch-1.3.81 linux/drivers/char/softdog.c
Next file: linux/drivers/char/tty_io.c
Previous file: linux/drivers/char/selection.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Sat Mar 30 13:20:33 1996
- Orig file:
v1.3.80/linux/drivers/char/softdog.c
- Orig date:
Wed Feb 21 13:12:18 1996
diff -u --recursive --new-file v1.3.80/linux/drivers/char/softdog.c linux/drivers/char/softdog.c
@@ -23,7 +23,7 @@
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/mm.h>
-#include <linux/mouse.h>
+#include <linux/miscdevice.h>
#define WATCHDOG_MINOR 130
#define TIMER_MARGIN (60*HZ) /* Allow 1 minute */
@@ -106,13 +106,13 @@
NULL,
NULL /* Fasync */
};
- static struct mouse softdog_mouse={
+ static struct miscdevice softdog_mouse={
WATCHDOG_MINOR,
"softdog",
&softdog_fops
};
- mouse_register(&softdog_mouse);
+ misc_register(&softdog_mouse);
init_timer(&watchdog_ticktock);
watchdog_ticktock.function=watchdog_fire;
printk("Software Watchdog Timer: 0.03\n");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this