diff options
| -rw-r--r-- | drivers/input/joystick/xpad.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 2578a7677040..f670dcb401c0 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c | |||
| @@ -1750,10 +1750,12 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id | |||
| 1750 | struct usb_endpoint_descriptor *ep = | 1750 | struct usb_endpoint_descriptor *ep = |
| 1751 | &intf->cur_altsetting->endpoint[i].desc; | 1751 | &intf->cur_altsetting->endpoint[i].desc; |
| 1752 | 1752 | ||
| 1753 | if (usb_endpoint_dir_in(ep)) | 1753 | if (usb_endpoint_xfer_int(ep)) { |
| 1754 | ep_irq_in = ep; | 1754 | if (usb_endpoint_dir_in(ep)) |
| 1755 | else | 1755 | ep_irq_in = ep; |
| 1756 | ep_irq_out = ep; | 1756 | else |
| 1757 | ep_irq_out = ep; | ||
| 1758 | } | ||
| 1757 | } | 1759 | } |
| 1758 | 1760 | ||
| 1759 | if (!ep_irq_in || !ep_irq_out) { | 1761 | if (!ep_irq_in || !ep_irq_out) { |
