usb: pch_udc: Fix the worning log issue at gadget driver remove
authorToshiharu Okada <toshiharu-linux@dsn.okisemi.com>
Tue, 18 Jan 2011 11:26:27 +0000 (20:26 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 23 Jan 2011 02:48:11 +0000 (18:48 -0800)
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>
drivers/usb/gadget/pch_udc.c

index cf0e6da724a9d9760ec2db3846c3531b1803d13c..b120dbb64d0f385c24d73e75b5411d54edbe9119 100644 (file)
@@ -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;