HID: check for HID_QUIRK_IGNORE during probing
[deliverable/linux.git] / drivers / hid / hid-core.c
index aa0f7dcabcd78bcbee6c019d680d93cf9e400ad0..66abeccdea784b6fc028a8ae528361897ba89321 100644 (file)
@@ -1760,7 +1760,8 @@ int hid_add_device(struct hid_device *hdev)
 
        /* we need to kill them here, otherwise they will stay allocated to
         * wait for coming driver */
-       if (!(hdev->quirks & HID_QUIRK_NO_IGNORE) && hid_ignore(hdev))
+       if (!(hdev->quirks & HID_QUIRK_NO_IGNORE)
+            && (hid_ignore(hdev) || (hdev->quirks & HID_QUIRK_IGNORE)))
                return -ENODEV;
 
        /* XXX hack, any other cleaner solution after the driver core
This page took 0.025376 seconds and 5 git commands to generate.