diff mbox

HID: check for HID_QUIRK_IGNORE during probing

Message ID 20100525225323.134b2c00@holly (mailing list archive)
State New, archived
Delegated to: Jiri Kosina
Headers show

Commit Message

Jindřich Makovička May 25, 2010, 8:53 p.m. UTC
None
diff mbox

Patch

--- hid-core.c.orig	2010-05-25 22:04:58.000000000 +0200
+++ hid-core.c	2010-05-25 22:08:53.791241376 +0200
@@ -1759,7 +1759,8 @@ 
 
 	/* 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;