Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36410
b: refs/heads/master
c: 60ca126
h: refs/heads/master
v: v3
  • Loading branch information
Luiz Fernando N. Capitulino authored and Greg Kroah-Hartman committed Sep 27, 2006
1 parent 087cfe3 commit fff908c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 96723199e00c4f27fecd8f43e1367c5f25b39a27
refs/heads/master: 60ca126c9589e3f4bcf81db9762dca82946cd2ba
4 changes: 1 addition & 3 deletions trunk/drivers/usb/input/powermate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit fff908c

Please sign in to comment.