]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
HID: fix quirk handling in usbmouse/kbd
authorJiri Slaby <jirislaby@gmail.com>
Fri, 27 Jun 2008 20:09:25 +0000 (22:09 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 23 Jul 2008 13:25:21 +0000 (15:25 +0200)
When usbmouse/kbd is set to build, USB_HID is never defined due to
the USB_HID!=y Kconfig rule. Test CONFIG_USB_HID_MODULE in both
drivers instead.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/usbkbd.c
drivers/hid/usbhid/usbmouse.c

index 6aa8b7e8fb980b60c0ccc19d99e695c0135ba75c..d7212ac89233fe86f8defdadf1f16c40a854f49e 100644 (file)
@@ -233,7 +233,7 @@ static int usb_kbd_probe(struct usb_interface *iface,
        if (!usb_endpoint_is_int_in(endpoint))
                return -ENODEV;
 
-#ifdef CONFIG_USB_HID
+#ifdef CONFIG_USB_HID_MODULE
        if (usbhid_lookup_quirk(le16_to_cpu(dev->descriptor.idVendor),
                                le16_to_cpu(dev->descriptor.idProduct))
                        & HID_QUIRK_IGNORE) {
index 703e9d0e871460df091ce77d8cd35697a09424e3..f74740f928086bd18172c3b454cfd1e90163218a 100644 (file)
@@ -129,7 +129,7 @@ static int usb_mouse_probe(struct usb_interface *intf, const struct usb_device_i
        if (!usb_endpoint_is_int_in(endpoint))
                return -ENODEV;
 
-#ifdef CONFIG_USB_HID
+#ifdef CONFIG_USB_HID_MODULE
        if (usbhid_lookup_quirk(le16_to_cpu(dev->descriptor.idVendor),
                                le16_to_cpu(dev->descriptor.idProduct))
                        & (HID_QUIRK_IGNORE|HID_QUIRK_IGNORE_MOUSE)) {