diff options
author | Luiz Fernando N. Capitulino | 2006-09-27 20:58:53 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2006-09-27 20:58:53 +0200 |
commit | 60ca126c9589e3f4bcf81db9762dca82946cd2ba (patch) | |
tree | e2635271a3257c5141456bbc8f930ab3ef74f143 /drivers/usb/input/powermate.c | |
parent | USB: keyspan_remote: Use usb_endpoint_* functions. (diff) | |
download | kernel-qcow2-linux-60ca126c9589e3f4bcf81db9762dca82946cd2ba.tar.gz kernel-qcow2-linux-60ca126c9589e3f4bcf81db9762dca82946cd2ba.tar.xz kernel-qcow2-linux-60ca126c9589e3f4bcf81db9762dca82946cd2ba.zip |
USB: powermate: Use usb_endpoint_* functions.
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/input/powermate.c')
-rw-r--r-- | drivers/usb/input/powermate.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/input/powermate.c b/drivers/usb/input/powermate.c index b3c0d0c3eae9..f0f8db6810a2 100644 --- a/drivers/usb/input/powermate.c +++ b/drivers/usb/input/powermate.c @@ -313,9 +313,7 @@ static int powermate_probe(struct usb_interface *intf, const struct usb_device_i interface = intf->cur_altsetting; endpoint = &interface->endpoint[0].desc; - if (!(endpoint->bEndpointAddress & 0x80)) - return -EIO; - if ((endpoint->bmAttributes & 3) != 3) + if (!usb_endpoint_is_int_in(endpoint)) return -EIO; usb_control_msg(udev, usb_sndctrlpipe(udev, 0), |