patch-1.3.81 linux/drivers/char/psaux.c
Next file: linux/drivers/char/selection.c
Previous file: linux/drivers/char/msbusmouse.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/psaux.c
- Orig date:
Fri Mar 1 07:50:40 1996
diff -u --recursive --new-file v1.3.80/linux/drivers/char/psaux.c linux/drivers/char/psaux.c
@@ -39,7 +39,7 @@
#include <linux/errno.h>
#include <linux/timer.h>
#include <linux/malloc.h>
-#include <linux/mouse.h>
+#include <linux/miscdevice.h>
#include <linux/random.h>
#include <asm/io.h>
@@ -481,7 +481,7 @@
* Initialize driver. First check for a 82C710 chip; if found
* forget about the Aux port and use the *_qp functions.
*/
-static struct mouse psaux_mouse = {
+static struct miscdevice psaux_mouse = {
PSMOUSE_MINOR, "ps2aux", &psaux_fops
};
@@ -506,7 +506,7 @@
} else {
return -EIO;
}
- mouse_register(&psaux_mouse);
+ misc_register(&psaux_mouse);
queue = (struct aux_queue *) kmalloc(sizeof(*queue), GFP_KERNEL);
memset(queue, 0, sizeof(*queue));
queue->head = queue->tail = 0;
@@ -538,7 +538,7 @@
void cleanup_module(void)
{
- mouse_deregister(&psaux_mouse);
+ misc_deregister(&psaux_mouse);
}
#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