patch-1.3.81 linux/drivers/char/msbusmouse.c
Next file: linux/drivers/char/psaux.c
Previous file: linux/drivers/char/mouse.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Sat Mar 30 13:20:33 1996
- Orig file:
v1.3.80/linux/drivers/char/msbusmouse.c
- Orig date:
Fri Mar 1 07:50:40 1996
diff -u --recursive --new-file v1.3.80/linux/drivers/char/msbusmouse.c linux/drivers/char/msbusmouse.c
@@ -38,7 +38,7 @@
#include <linux/busmouse.h>
#include <linux/signal.h>
#include <linux/errno.h>
-#include <linux/mouse.h>
+#include <linux/miscdevice.h>
#include <linux/random.h>
#include <asm/io.h>
@@ -170,7 +170,7 @@
fasync_mouse,
};
-static struct mouse ms_bus_mouse = {
+static struct miscdevice ms_bus_mouse = {
MICROSOFT_BUSMOUSE, "msbusmouse", &ms_bus_mouse_fops
};
@@ -205,7 +205,7 @@
MS_MSE_INT_OFF();
request_region(MS_MSE_CONTROL_PORT, 0x04, "MS Busmouse");
printk("Microsoft BusMouse detected and installed.\n");
- mouse_register(&ms_bus_mouse);
+ misc_register(&ms_bus_mouse);
return 0;
}
@@ -217,7 +217,7 @@
void cleanup_module(void)
{
- mouse_deregister(&ms_bus_mouse);
+ misc_deregister(&ms_bus_mouse);
release_region(MS_MSE_CONTROL_PORT, 0x04);
}
#endif
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