]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
USB: acecad: Use usb_endpoint_* functions.
authorLuiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Wed, 27 Sep 2006 18:58:53 +0000 (11:58 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 27 Sep 2006 18:58:53 +0000 (11:58 -0700)
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/input/acecad.c

index 18c10e150ef37df3e2e78878dace708f4a9bba37..d83603ba40ae257aa344b5f7774c8a926e9789b5 100644 (file)
@@ -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);