aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/joystick/xpad.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index b48f7051bf30..fd801135eebb 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -499,6 +499,9 @@ static int xpad_play_effect(struct input_dev *dev, void *data,
499 499
500static int xpad_init_ff(struct usb_xpad *xpad) 500static int xpad_init_ff(struct usb_xpad *xpad)
501{ 501{
502 if (xpad->xtype != XTYPE_XBOX360)
503 return 0;
504
502 input_set_capability(xpad->dev, EV_FF, FF_RUMBLE); 505 input_set_capability(xpad->dev, EV_FF, FF_RUMBLE);
503 506
504 return input_ff_create_memless(xpad->dev, NULL, xpad_play_effect); 507 return input_ff_create_memless(xpad->dev, NULL, xpad_play_effect);