From: Luiz Fernando N. Capitulino Date: Wed, 27 Sep 2006 18:58:53 +0000 (-0700) Subject: USB: acecad: Use usb_endpoint_* functions. X-Git-Tag: v2.6.19-rc1~899^2~71 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ee709a3c613d9c458323e04dd69c8eb233d45199;p=linux-2.6-omap-h63xx.git USB: acecad: Use usb_endpoint_* functions. Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/input/acecad.c b/drivers/usb/input/acecad.c index 18c10e150ef..d83603ba40a 100644 --- a/drivers/usb/input/acecad.c +++ b/drivers/usb/input/acecad.c @@ -141,10 +141,7 @@ static int usb_acecad_probe(struct usb_interface *intf, const struct usb_device_ endpoint = &interface->endpoint[0].desc; - if (!(endpoint->bEndpointAddress & 0x80)) - return -ENODEV; - - if ((endpoint->bmAttributes & 3) != 3) + if (!usb_endpoint_is_int_in(endpoint)) return -ENODEV; pipe = usb_rcvintpipe(dev, endpoint->bEndpointAddress);