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

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