]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/hid/hid-logitech.c
HID: move reset leds quirk
[linux-2.6-omap-h63xx.git] / drivers / hid / hid-logitech.c
index 732258241c05d100699d3024ae38591c5d350999..df27f9aadf26a0b9bffef4da34ee3cb303e6ff72 100644 (file)
@@ -226,8 +226,6 @@ static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id)
 
        hid_set_drvdata(hdev, (void *)quirks);
 
-       if (quirks & LG_RESET_LEDS)
-               hdev->quirks |= HID_QUIRK_RESET_LEDS;
        if (quirks & LG_NOGET)
                hdev->quirks |= HID_QUIRK_NOGET;
 
@@ -243,6 +241,9 @@ static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id)
                goto err_free;
        }
 
+       if (quirks & LG_RESET_LEDS)
+               usbhid_set_leds(hdev);
+
        return 0;
 err_free:
        return ret;