aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index aa0f7dcabcd7..66abeccdea78 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1760,7 +1760,8 @@ int hid_add_device(struct hid_device *hdev)
1760 1760
1761 /* we need to kill them here, otherwise they will stay allocated to 1761 /* we need to kill them here, otherwise they will stay allocated to
1762 * wait for coming driver */ 1762 * wait for coming driver */
1763 if (!(hdev->quirks & HID_QUIRK_NO_IGNORE) && hid_ignore(hdev)) 1763 if (!(hdev->quirks & HID_QUIRK_NO_IGNORE)
1764 && (hid_ignore(hdev) || (hdev->quirks & HID_QUIRK_IGNORE)))
1764 return -ENODEV; 1765 return -ENODEV;
1765 1766
1766 /* XXX hack, any other cleaner solution after the driver core 1767 /* XXX hack, any other cleaner solution after the driver core