diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/uvc_v4l2.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/usb/gadget/uvc_v4l2.c b/drivers/usb/gadget/uvc_v4l2.c index 5e807f083bc8..55828705d859 100644 --- a/drivers/usb/gadget/uvc_v4l2.c +++ b/drivers/usb/gadget/uvc_v4l2.c | |||
@@ -130,13 +130,7 @@ uvc_v4l2_open(struct file *file) | |||
130 | if (handle == NULL) | 130 | if (handle == NULL) |
131 | return -ENOMEM; | 131 | return -ENOMEM; |
132 | 132 | ||
133 | ret = v4l2_fh_init(&handle->vfh, vdev); | 133 | v4l2_fh_init(&handle->vfh, vdev); |
134 | if (ret < 0) | ||
135 | goto error; | ||
136 | |||
137 | ret = v4l2_event_init(&handle->vfh); | ||
138 | if (ret < 0) | ||
139 | goto error; | ||
140 | 134 | ||
141 | ret = v4l2_event_alloc(&handle->vfh, 8); | 135 | ret = v4l2_event_alloc(&handle->vfh, 8); |
142 | if (ret < 0) | 136 | if (ret < 0) |
@@ -354,7 +348,7 @@ uvc_v4l2_poll(struct file *file, poll_table *wait) | |||
354 | struct uvc_file_handle *handle = to_uvc_file_handle(file->private_data); | 348 | struct uvc_file_handle *handle = to_uvc_file_handle(file->private_data); |
355 | unsigned int mask = 0; | 349 | unsigned int mask = 0; |
356 | 350 | ||
357 | poll_wait(file, &handle->vfh.events->wait, wait); | 351 | poll_wait(file, &handle->vfh.wait, wait); |
358 | if (v4l2_event_pending(&handle->vfh)) | 352 | if (v4l2_event_pending(&handle->vfh)) |
359 | mask |= POLLPRI; | 353 | mask |= POLLPRI; |
360 | 354 | ||