diff options
Diffstat (limited to 'drivers/media/video/usbvideo/vicam.c')
-rw-r--r-- | drivers/media/video/usbvideo/vicam.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/usbvideo/vicam.c b/drivers/media/video/usbvideo/vicam.c index 8e2d58bec481..4602597ed8d1 100644 --- a/drivers/media/video/usbvideo/vicam.c +++ b/drivers/media/video/usbvideo/vicam.c | |||
@@ -844,8 +844,7 @@ vicam_probe( struct usb_interface *intf, const struct usb_device_id *id) | |||
844 | interface->desc.bInterfaceNumber, (unsigned) (interface->desc.bNumEndpoints)); | 844 | interface->desc.bInterfaceNumber, (unsigned) (interface->desc.bNumEndpoints)); |
845 | endpoint = &interface->endpoint[0].desc; | 845 | endpoint = &interface->endpoint[0].desc; |
846 | 846 | ||
847 | if ((endpoint->bEndpointAddress & 0x80) && | 847 | if (usb_endpoint_is_bulk_in(endpoint)) { |
848 | ((endpoint->bmAttributes & 3) == 0x02)) { | ||
849 | /* we found a bulk in endpoint */ | 848 | /* we found a bulk in endpoint */ |
850 | bulkEndpoint = endpoint->bEndpointAddress; | 849 | bulkEndpoint = endpoint->bEndpointAddress; |
851 | } else { | 850 | } else { |