Skip to contentSkip to conversation

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

PATCH New Toshiharu Okada 1 participant 1 message Jan 18, 2011 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/usb/gadget/pch_udc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/usb/gadget/pch_udc.c +2 -1
index dfe927b..025cf6c 100644
@@ -2716,7 +2716,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;
Signature · 1 line
1.6.2.5