diff options
Diffstat (limited to 'drivers/hid/hid-logitech.c')
-rw-r--r-- | drivers/hid/hid-logitech.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/hid/hid-logitech.c b/drivers/hid/hid-logitech.c index 732258241c05..df27f9aadf26 100644 --- a/drivers/hid/hid-logitech.c +++ b/drivers/hid/hid-logitech.c | |||
@@ -226,8 +226,6 @@ static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id) | |||
226 | 226 | ||
227 | hid_set_drvdata(hdev, (void *)quirks); | 227 | hid_set_drvdata(hdev, (void *)quirks); |
228 | 228 | ||
229 | if (quirks & LG_RESET_LEDS) | ||
230 | hdev->quirks |= HID_QUIRK_RESET_LEDS; | ||
231 | if (quirks & LG_NOGET) | 229 | if (quirks & LG_NOGET) |
232 | hdev->quirks |= HID_QUIRK_NOGET; | 230 | hdev->quirks |= HID_QUIRK_NOGET; |
233 | 231 | ||
@@ -243,6 +241,9 @@ static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id) | |||
243 | goto err_free; | 241 | goto err_free; |
244 | } | 242 | } |
245 | 243 | ||
244 | if (quirks & LG_RESET_LEDS) | ||
245 | usbhid_set_leds(hdev); | ||
246 | |||
246 | return 0; | 247 | return 0; |
247 | err_free: | 248 | err_free: |
248 | return ret; | 249 | return ret; |