aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/stk-webcam.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/stk-webcam.c')
-rw-r--r--drivers/media/video/stk-webcam.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/media/video/stk-webcam.c b/drivers/media/video/stk-webcam.c
index 5566c2379d64..f9516d0f3c11 100644
--- a/drivers/media/video/stk-webcam.c
+++ b/drivers/media/video/stk-webcam.c
@@ -1396,12 +1396,9 @@ static int stk_camera_probe(struct usb_interface *interface,
1396 endpoint = &iface_desc->endpoint[i].desc; 1396 endpoint = &iface_desc->endpoint[i].desc;
1397 1397
1398 if (!dev->isoc_ep 1398 if (!dev->isoc_ep
1399 && ((endpoint->bEndpointAddress 1399 && usb_endpoint_is_isoc_in(endpoint)) {
1400 & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN)
1401 && ((endpoint->bmAttributes
1402 & USB_ENDPOINT_XFERTYPE_MASK) == USB_ENDPOINT_XFER_ISOC)) {
1403 /* we found an isoc in endpoint */ 1400 /* we found an isoc in endpoint */
1404 dev->isoc_ep = (endpoint->bEndpointAddress & 0xF); 1401 dev->isoc_ep = usb_endpoint_num(endpoint);
1405 break; 1402 break;
1406 } 1403 }
1407 } 1404 }