diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-09-27 18:13:53 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-09-27 18:13:53 -0400 |
commit | aebb1153ac54ddbbd3d3f0481a193f4bf0ead53b (patch) | |
tree | 57425aa83c8bed5b41af7e3408024fe1f2fdded9 /drivers/usb/input/appletouch.c | |
parent | 022e7a12b6aa11a11de4d708fe8606c9a6734b37 (diff) | |
parent | a77c64c1a641950626181b4857abb701d8f38ccc (diff) |
Merge branch 'master' into upstream
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; |