LKML Archive on
help / color / mirror / Atom feed
* [PATCH linux-next] usb: pch_udc: Fix the worning log issue at gadget driver remove
@ 2011-01-18 11:26 Toshiharu Okada
  0 siblings, 0 replies; only message in thread
From: Toshiharu Okada @ 2011-01-18 11:26 UTC (permalink / raw)
  To: linux-usb, Greg Kroah-Hartman
  Cc: LKML, Wang, Qi, Wang, Yong Y, Andrew, Intel OTC, Ewe, Kok Howg

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: Toshiharu Okada <>
 drivers/usb/gadget/pch_udc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/gadget/pch_udc.c b/drivers/usb/gadget/pch_udc.c
index dfe927b..025cf6c 100644
--- a/drivers/usb/gadget/pch_udc.c
+++ b/drivers/usb/gadget/pch_udc.c
@@ -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);
 	dev-> = NULL;
 	dev->driver = NULL;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-18 11:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-18 11:26 [PATCH linux-next] usb: pch_udc: Fix the worning log issue at gadget driver remove Toshiharu Okada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).