Skip to content

Commit

Permalink
USB: gadgets: ci13xxx: fix probing of compiled-in gadget drivers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Artem Leonenko authored and Greg Kroah-Hartman committed Dec 16, 2010
1 parent 36facad commit 6549e8b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/usb/gadget/ci13xxx_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit 6549e8b

Please sign in to comment.