patch-2.3.1 linux/drivers/char/atixlmouse.c

Next file: linux/drivers/char/bttv.c
Previous file: linux/drivers/cdrom/sonycd535.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/drivers/char/atixlmouse.c linux/drivers/char/atixlmouse.c
@@ -67,7 +67,7 @@
 	int present;
 	int ready;
 	int active;
-	struct wait_queue *wait;
+	wait_queue_head_t wait;
 	struct fasync_struct *fasync;
 } mouse;
 
@@ -223,7 +223,7 @@
 	mouse.ready = 0;
 	mouse.buttons = mouse.latch_buttons = 0;
 	mouse.dx = mouse.dy = 0;
-	mouse.wait = NULL;
+	init_waitqueue_head(&mouse.wait);
 	printk("Bus mouse detected and installed.\n");
 	misc_register(&atixl_mouse);
 	return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)