aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorArtem Leonenko <tikkeri@gmail.com>2010-12-15 02:46:40 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-16 16:32:37 -0500
commit6549e8b7f34b456d5689b98c2c0cf38c98414e47 (patch)
treebb9dc8a10d822ad1fc276aa2bb2e72b4ae03a4a5 /drivers/usb
parent36facadd9ea98f8415d0dbb63e0763b7ee9d3911 (diff)
USB: gadgets: ci13xxx: fix probing of compiled-in gadget drivers
Built-in gadget drivers have NULL-ifed unbind() function. Checking whether unbind() is NULL will never let any compiled into kernel driver attach. Signed-off-by: Artem Leonenko <tikkeri@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/ci13xxx_udc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/ci13xxx_udc.c b/drivers/usb/gadget/ci13xxx_udc.c
index f200e472e476..03505cbae873 100644
--- a/drivers/usb/gadget/ci13xxx_udc.c
+++ b/drivers/usb/gadget/ci13xxx_udc.c
@@ -2393,7 +2393,6 @@ int usb_gadget_probe_driver(struct usb_gadget_driver *driver,
2393 2393
2394 if (driver == NULL || 2394 if (driver == NULL ||
2395 bind == NULL || 2395 bind == NULL ||
2396 driver->unbind == NULL ||
2397 driver->setup == NULL || 2396 driver->setup == NULL ||
2398 driver->disconnect == NULL || 2397 driver->disconnect == NULL ||
2399 driver->suspend == NULL || 2398 driver->suspend == NULL ||