HID: fix compilation of hidbp drivers without usbhid
[linux-2.6.git] / drivers / hid / usbhid / usbkbd.c
index a31ccb4..5d9dbb4 100644 (file)
@@ -235,11 +235,13 @@ static int usb_kbd_probe(struct usb_interface *iface,
        if (!usb_endpoint_is_int_in(endpoint))
                return -ENODEV;
 
+#ifdef CONFIG_USB_HID
        if (usbhid_lookup_quirk(le16_to_cpu(dev->descriptor.idVendor),
                                le16_to_cpu(dev->descriptor.idProduct))
                        & HID_QUIRK_IGNORE) {
                return -ENODEV;
        }
+#endif
 
        pipe = usb_rcvintpipe(dev, endpoint->bEndpointAddress);
        maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe));