From: Luiz Fernando N. Capitulino Date: Thu, 26 Oct 2006 16:02:57 +0000 (-0300) Subject: USB: phidgetmotorcontrol: Use usb_endpoint_* functions X-Git-Tag: v2.6.20-rc2~6^2~13^2~477^2~82 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a742e5a7fc5b179e2482b85e875fc99192cead74;p=linux-2.6-omap-h63xx.git USB: phidgetmotorcontrol: Use usb_endpoint_* functions Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/misc/phidgetmotorcontrol.c b/drivers/usb/misc/phidgetmotorcontrol.c index 5c780cab92e..7702a4f7b08 100644 --- a/drivers/usb/misc/phidgetmotorcontrol.c +++ b/drivers/usb/misc/phidgetmotorcontrol.c @@ -323,7 +323,7 @@ static int motorcontrol_probe(struct usb_interface *intf, const struct usb_devic return -ENODEV; endpoint = &interface->endpoint[0].desc; - if (!(endpoint->bEndpointAddress & 0x80)) + if (!usb_endpoint_dir_in(endpoint)) return -ENODEV; /*