patch-2.3.1 linux/drivers/usb/mouse.c

Next file: linux/drivers/usb/ohci-hcd.c
Previous file: linux/drivers/usb/hub.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/drivers/usb/mouse.c linux/drivers/usb/mouse.c
@@ -48,7 +48,7 @@
 	int present; /* this mouse is plugged in */
 	int active; /* someone is has this mouse's device open */
 	int ready; /* the mouse has changed state since the last read */
-	struct wait_queue *wait; /* for polling */
+	wait_queue_head_t wait; /* for polling */
 	struct fasync_struct *fasync;
 	/* later, add a list here to support multiple mice */
 	/* but we will also need a list of file pointers to identify it */
@@ -277,7 +277,7 @@
 	misc_register(&usb_mouse);
 
 	mouse->present = mouse->active = 0;
-	mouse->wait = NULL;
+	init_waitqueue_head(&mouse->wait);
 	mouse->fasync = NULL;
 
 	usb_register(&mouse_driver);

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