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

Commit 15680cdf authored by Toshiharu Okada's avatar Toshiharu Okada Committed by Greg Kroah-Hartman
Browse files

usb: pch_udc: Fix the worning log issue at gadget driver remove



When removing a serial gadget driver, the kernel warning message is outputted.
This patch fixed this issue.

The pch_udc driver did not have disconnection processing of gadget.

Signed-off-by: default avatarToshiharu Okada <toshiharu-linux@dsn.okisemi.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a9d61bc4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2718,7 +2718,8 @@ int usb_gadget_unregister_driver(struct usb_gadget_driver *driver)

	pch_udc_disable_interrupts(dev, UDC_DEVINT_MSK);

	/* Assues that there are no pending requets with this driver */
	/* Assures that there are no pending requests with this driver */
	driver->disconnect(&dev->gadget);
	driver->unbind(&dev->gadget);
	dev->gadget.dev.driver = NULL;
	dev->driver = NULL;