patch-1.3.81 linux/drivers/char/wdt.c
Next file: linux/drivers/net/Makefile
Previous file: linux/drivers/char/tty_io.c
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Sat Mar 30 13:20:33 1996
- Orig file:
v1.3.80/linux/drivers/char/wdt.c
- Orig date:
Fri Mar 1 07:50:41 1996
diff -u --recursive --new-file v1.3.80/linux/drivers/char/wdt.c linux/drivers/char/wdt.c
@@ -27,7 +27,7 @@
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/sched.h>
-#include <linux/mouse.h>
+#include <linux/miscdevice.h>
#include "wd501p.h"
#include <linux/malloc.h>
#include <linux/ioport.h>
@@ -213,7 +213,7 @@
wdt_release
};
-static struct mouse wdt_mouse=
+static struct miscdevice wdt_mouse=
{
WATCHDOG_MINOR,
"wdt",
@@ -221,7 +221,7 @@
};
#ifdef CONFIG_WDT_501
-static struct mouse temp_mouse=
+static struct miscdevice temp_mouse=
{
TEMP_MINOR,
"temperature",
@@ -251,7 +251,7 @@
{
mouse_deregister(&wdt_mouse);
#ifdef CONFIG_WDT_501
- mouse_deregister(&temp_mouse);
+ misc_deregister(&temp_mouse);
#endif
release_region(io,8);
free_irq(irq, NULL);
@@ -269,7 +269,7 @@
}
mouse_register(&wdt_mouse);
#ifdef CONFIG_WDT_501
- mouse_register(&temp_mouse);
+ misc_register(&temp_mouse);
#endif
request_region(io, 8, "wdt501");
return 0;
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