diff options
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/usbhid/hid-pidff.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/hid/usbhid/hid-pidff.c b/drivers/hid/usbhid/hid-pidff.c index 10b616702780..0b531c6a76a5 100644 --- a/drivers/hid/usbhid/hid-pidff.c +++ b/drivers/hid/usbhid/hid-pidff.c | |||
@@ -1252,6 +1252,8 @@ int hid_pidff_init(struct hid_device *hid) | |||
1252 | 1252 | ||
1253 | pidff->hid = hid; | 1253 | pidff->hid = hid; |
1254 | 1254 | ||
1255 | hid_device_io_start(hid); | ||
1256 | |||
1255 | pidff_find_reports(hid, HID_OUTPUT_REPORT, pidff); | 1257 | pidff_find_reports(hid, HID_OUTPUT_REPORT, pidff); |
1256 | pidff_find_reports(hid, HID_FEATURE_REPORT, pidff); | 1258 | pidff_find_reports(hid, HID_FEATURE_REPORT, pidff); |
1257 | 1259 | ||
@@ -1315,9 +1317,13 @@ int hid_pidff_init(struct hid_device *hid) | |||
1315 | 1317 | ||
1316 | hid_info(dev, "Force feedback for USB HID PID devices by Anssi Hannula <anssi.hannula@gmail.com>\n"); | 1318 | hid_info(dev, "Force feedback for USB HID PID devices by Anssi Hannula <anssi.hannula@gmail.com>\n"); |
1317 | 1319 | ||
1320 | hid_device_io_stop(hid); | ||
1321 | |||
1318 | return 0; | 1322 | return 0; |
1319 | 1323 | ||
1320 | fail: | 1324 | fail: |
1325 | hid_device_io_stop(hid); | ||
1326 | |||
1321 | kfree(pidff); | 1327 | kfree(pidff); |
1322 | return error; | 1328 | return error; |
1323 | } | 1329 | } |