|
@@ -1760,7 +1760,8 @@ int hid_add_device(struct hid_device *hdev)
|
|
|
|
|
|
/* we need to kill them here, otherwise they will stay allocated to
|
|
/* we need to kill them here, otherwise they will stay allocated to
|
|
* wait for coming driver */
|
|
* 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;
|
|
return -ENODEV;
|
|
|
|
|
|
/* XXX hack, any other cleaner solution after the driver core
|
|
/* XXX hack, any other cleaner solution after the driver core
|