diff options
Diffstat (limited to 'drivers/watchdog/pcwd_usb.c')
-rw-r--r-- | drivers/watchdog/pcwd_usb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/pcwd_usb.c b/drivers/watchdog/pcwd_usb.c index afb089695da8..b5320a8e7451 100644 --- a/drivers/watchdog/pcwd_usb.c +++ b/drivers/watchdog/pcwd_usb.c | |||
@@ -609,9 +609,7 @@ static int usb_pcwd_probe(struct usb_interface *interface, const struct usb_devi | |||
609 | /* check out the endpoint: it has to be Interrupt & IN */ | 609 | /* check out the endpoint: it has to be Interrupt & IN */ |
610 | endpoint = &iface_desc->endpoint[0].desc; | 610 | endpoint = &iface_desc->endpoint[0].desc; |
611 | 611 | ||
612 | if (!((endpoint->bEndpointAddress & USB_DIR_IN) && | 612 | if (!usb_endpoint_is_int_in(endpoint)) { |
613 | ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) | ||
614 | == USB_ENDPOINT_XFER_INT))) { | ||
615 | /* we didn't find a Interrupt endpoint with direction IN */ | 613 | /* we didn't find a Interrupt endpoint with direction IN */ |
616 | printk(KERN_ERR PFX "Couldn't find an INTR & IN endpoint\n"); | 614 | printk(KERN_ERR PFX "Couldn't find an INTR & IN endpoint\n"); |
617 | return -ENODEV; | 615 | return -ENODEV; |