From: Artem Leonenko Date: Wed, 15 Dec 2010 07:46:40 +0000 (-0800) Subject: USB: gadgets: ci13xxx: fix probing of compiled-in gadget drivers X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6549e8b7f34b456d5689b98c2c0cf38c98414e47;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- 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, if (driver == NULL || bind == NULL || - driver->unbind == NULL || driver->setup == NULL || driver->disconnect == NULL || driver->suspend == NULL ||