Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -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 ||