HID: fix waitqueue usage in hiddev
[linux-2.6.git] / drivers / hid / usbhid / hiddev.c
index 00ea1ed282a94e7fe30a789bf7951b0ea98c0185..1f5b5d4c3c34db9844348ba1d27dd900c4166817 100644 (file)
@@ -323,7 +323,7 @@ static ssize_t hiddev_write(struct file * file, const char __user * buffer, size
  */
 static ssize_t hiddev_read(struct file * file, char __user * buffer, size_t count, loff_t *ppos)
 {
-       DECLARE_WAITQUEUE(wait, current);
+       DEFINE_WAIT(wait);
        struct hiddev_list *list = file->private_data;
        int event_size;
        int retval;