diff options
-rw-r--r-- | drivers/input/joystick/iforce/iforce-usb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/input/joystick/iforce/iforce-usb.c b/drivers/input/joystick/iforce/iforce-usb.c index 29abfeeef9a5..6c554c11a7ac 100644 --- a/drivers/input/joystick/iforce/iforce-usb.c +++ b/drivers/input/joystick/iforce/iforce-usb.c | |||
@@ -201,7 +201,12 @@ static int iforce_usb_probe(struct usb_interface *intf, | |||
201 | return -ENODEV; | 201 | return -ENODEV; |
202 | 202 | ||
203 | epirq = &interface->endpoint[0].desc; | 203 | epirq = &interface->endpoint[0].desc; |
204 | if (!usb_endpoint_is_int_in(epirq)) | ||
205 | return -ENODEV; | ||
206 | |||
204 | epout = &interface->endpoint[1].desc; | 207 | epout = &interface->endpoint[1].desc; |
208 | if (!usb_endpoint_is_int_out(epout)) | ||
209 | return -ENODEV; | ||
205 | 210 | ||
206 | iforce_usb = kzalloc(sizeof(*iforce_usb), GFP_KERNEL); | 211 | iforce_usb = kzalloc(sizeof(*iforce_usb), GFP_KERNEL); |
207 | if (!iforce_usb) | 212 | if (!iforce_usb) |