summaryrefslogtreecommitdiffstats
path: root/drivers/char/joystick/joystick.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/joystick/joystick.c')
-rw-r--r--drivers/char/joystick/joystick.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/joystick/joystick.c b/drivers/char/joystick/joystick.c
index aff1acd17..4d9d94aa1 100644
--- a/drivers/char/joystick/joystick.c
+++ b/drivers/char/joystick/joystick.c
@@ -491,7 +491,7 @@ static ssize_t js_read(struct file *file, char *buf, size_t count, loff_t *ppos)
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 @@ int js_register_device(struct js_port *port, int number, int axes, int buttons,
curd->next = NULL;
curd->list = NULL;
curd->port = port;
- curd->wait = NULL;
+ init_waitqueue_head(&curd->wait);
curd->open = open;
curd->close = close;