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

Next file: linux/drivers/char/keyboard.c
Previous file: linux/drivers/char/isicom.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/drivers/char/joystick/joystick.c linux/drivers/char/joystick/joystick.c
@@ -491,7 +491,7 @@
 static int js_read(struct inode *inode, struct file *file, char *buf, int count)
 #endif
 {
-	struct wait_queue wait = { current, NULL };
+	DECLARE_WAITQUEUE(wait, current);
 	struct js_event *buff = (void *) buf;
 	struct js_list *curl;
 	struct js_dev *jd;
@@ -1081,7 +1081,7 @@
 	curd->next = NULL;
 	curd->list = NULL;
 	curd->port = port;
-	curd->wait = NULL;
+	init_waitqueue_head(&curd->wait);
 	curd->open = open;
 	curd->close = close;
 

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