Skip to content
Snippets Groups Projects
Commit 6549e8b7 authored by Artem Leonenko's avatar Artem Leonenko Committed by Greg Kroah-Hartman
Browse files

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: default avatarArtem Leonenko <tikkeri@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 36facadd
No related merge requests found
...@@ -2393,7 +2393,6 @@ int usb_gadget_probe_driver(struct usb_gadget_driver *driver, ...@@ -2393,7 +2393,6 @@ int usb_gadget_probe_driver(struct usb_gadget_driver *driver,
if (driver == NULL || if (driver == NULL ||
bind == NULL || bind == NULL ||
driver->unbind == NULL ||
driver->setup == NULL || driver->setup == NULL ||
driver->disconnect == NULL || driver->disconnect == NULL ||
driver->suspend == NULL || driver->suspend == NULL ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment