Skip to content

Commit

Permalink
usb: pch_udc: Fix the worning log issue at gadget driver remove
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Toshiharu Okada authored and Greg Kroah-Hartman committed Jan 23, 2011
1 parent a9d61bc commit 15680cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/gadget/pch_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 15680cd

Please sign in to comment.