diff options
Diffstat (limited to 'drivers/usb/input/appletouch.c')
-rw-r--r-- | drivers/usb/input/appletouch.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/input/appletouch.c b/drivers/usb/input/appletouch.c index 044faa07e297..0aa9cc2bfd69 100644 --- a/drivers/usb/input/appletouch.c +++ b/drivers/usb/input/appletouch.c | |||
@@ -436,10 +436,7 @@ static int atp_probe(struct usb_interface *iface, const struct usb_device_id *id | |||
436 | iface_desc = iface->cur_altsetting; | 436 | iface_desc = iface->cur_altsetting; |
437 | for (i = 0; i < iface_desc->desc.bNumEndpoints; i++) { | 437 | for (i = 0; i < iface_desc->desc.bNumEndpoints; i++) { |
438 | endpoint = &iface_desc->endpoint[i].desc; | 438 | endpoint = &iface_desc->endpoint[i].desc; |
439 | if (!int_in_endpointAddr && | 439 | if (!int_in_endpointAddr && usb_endpoint_is_int_in(endpoint)) { |
440 | (endpoint->bEndpointAddress & USB_DIR_IN) && | ||
441 | ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) | ||
442 | == USB_ENDPOINT_XFER_INT)) { | ||
443 | /* we found an interrupt in endpoint */ | 440 | /* we found an interrupt in endpoint */ |
444 | int_in_endpointAddr = endpoint->bEndpointAddress; | 441 | int_in_endpointAddr = endpoint->bEndpointAddress; |
445 | break; | 442 | break; |