diff options
Diffstat (limited to 'drivers/media/video/usbvideo/ibmcam.c')
-rw-r--r-- | drivers/media/video/usbvideo/ibmcam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/usbvideo/ibmcam.c b/drivers/media/video/usbvideo/ibmcam.c index c710bcd1df48..f8d85ddb4804 100644 --- a/drivers/media/video/usbvideo/ibmcam.c +++ b/drivers/media/video/usbvideo/ibmcam.c | |||
@@ -3779,11 +3779,11 @@ static int ibmcam_probe(struct usb_interface *intf, const struct usb_device_id * | |||
3779 | err("Alternate settings have different endpoint addresses!"); | 3779 | err("Alternate settings have different endpoint addresses!"); |
3780 | return -ENODEV; | 3780 | return -ENODEV; |
3781 | } | 3781 | } |
3782 | if ((endpoint->bmAttributes & 0x03) != 0x01) { | 3782 | if (usb_endpoint_type(endpoint) != USB_ENDPOINT_XFER_ISOC) { |
3783 | err("Interface %d. has non-ISO endpoint!", ifnum); | 3783 | err("Interface %d. has non-ISO endpoint!", ifnum); |
3784 | return -ENODEV; | 3784 | return -ENODEV; |
3785 | } | 3785 | } |
3786 | if ((endpoint->bEndpointAddress & 0x80) == 0) { | 3786 | if (usb_endpoint_dir_out(endpoint)) { |
3787 | err("Interface %d. has ISO OUT endpoint!", ifnum); | 3787 | err("Interface %d. has ISO OUT endpoint!", ifnum); |
3788 | return -ENODEV; | 3788 | return -ENODEV; |
3789 | } | 3789 | } |