[PATCH] USB: fix hid core to return proper error code from probe

Drivers need to return -ENODEV when they can't bind to a device.
Anything else stops the "bind a device to a driver" search.

From: Stelian Pop <stelian@popies.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by Stelian Pop and committed by Greg Kroah-Hartman 479f6ea8 b7c84c6a

+2 -2
+2 -2
drivers/usb/input/hid-core.c
··· 1762 intf->altsetting->desc.bInterfaceNumber); 1763 1764 if (!(hid = usb_hid_configure(intf))) 1765 - return -EIO; 1766 1767 hid_init_reports(hid); 1768 hid_dump_device(hid); ··· 1777 if (!hid->claimed) { 1778 printk ("HID device not claimed by input or hiddev\n"); 1779 hid_disconnect(intf); 1780 - return -EIO; 1781 } 1782 1783 printk(KERN_INFO);
··· 1762 intf->altsetting->desc.bInterfaceNumber); 1763 1764 if (!(hid = usb_hid_configure(intf))) 1765 + return -ENODEV; 1766 1767 hid_init_reports(hid); 1768 hid_dump_device(hid); ··· 1777 if (!hid->claimed) { 1778 printk ("HID device not claimed by input or hiddev\n"); 1779 hid_disconnect(intf); 1780 + return -ENODEV; 1781 } 1782 1783 printk(KERN_INFO);