diff options
author | Toshiharu Okada <toshiharu-linux@dsn.okisemi.com> | 2011-01-18 06:26:27 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-01-22 21:48:11 -0500 |
commit | 15680cdfc69a7277ba87a8a3a3242d67c4ba5916 (patch) | |
tree | 616cdd9489af0ee7085fd73e7080cb43498eefca | |
parent | a9d61bc49188e32d2ae9cf0f683cde3e1744feef (diff) |
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: Toshiharu Okada <toshiharu-linux@dsn.okisemi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | 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 cf0e6da724a9..b120dbb64d0f 100644 --- a/drivers/usb/gadget/pch_udc.c +++ b/drivers/usb/gadget/pch_udc.c | |||
@@ -2718,7 +2718,8 @@ int usb_gadget_unregister_driver(struct usb_gadget_driver *driver) | |||
2718 | 2718 | ||
2719 | pch_udc_disable_interrupts(dev, UDC_DEVINT_MSK); | 2719 | pch_udc_disable_interrupts(dev, UDC_DEVINT_MSK); |
2720 | 2720 | ||
2721 | /* Assues that there are no pending requets with this driver */ | 2721 | /* Assures that there are no pending requests with this driver */ |
2722 | driver->disconnect(&dev->gadget); | ||
2722 | driver->unbind(&dev->gadget); | 2723 | driver->unbind(&dev->gadget); |
2723 | dev->gadget.dev.driver = NULL; | 2724 | dev->gadget.dev.driver = NULL; |
2724 | dev->driver = NULL; | 2725 | dev->driver = NULL; |