diff options
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r-- | drivers/usb/misc/phidgetkit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/phidgetkit.c b/drivers/usb/misc/phidgetkit.c index abb4dcd811ac..0dc0d034cc9a 100644 --- a/drivers/usb/misc/phidgetkit.c +++ b/drivers/usb/misc/phidgetkit.c | |||
@@ -551,7 +551,7 @@ static int interfacekit_probe(struct usb_interface *intf, const struct usb_devic | |||
551 | return -ENODEV; | 551 | return -ENODEV; |
552 | 552 | ||
553 | endpoint = &interface->endpoint[0].desc; | 553 | endpoint = &interface->endpoint[0].desc; |
554 | if (!(endpoint->bEndpointAddress & 0x80)) | 554 | if (!usb_endpoint_dir_in(endpoint)) |
555 | return -ENODEV; | 555 | return -ENODEV; |
556 | /* | 556 | /* |
557 | * bmAttributes | 557 | * bmAttributes |