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: MMI-PSA29.97-13-9~47266^2~71 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee709a3c613d9c458323e04dd69c8eb233d45199;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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 18c10e150ef3..d83603ba40ae 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);