diff options
author | David Vrabel <david.vrabel@csr.com> | 2008-12-08 17:18:47 +0100 |
---|---|---|
committer | David Vrabel <david.vrabel@csr.com> | 2008-12-08 17:18:47 +0100 |
commit | c35fa3ea1ae8198bd65c2c6e59d9ebd68c115a59 (patch) | |
tree | 878768b69df25459b448aa890352342c4a3c6e2d /drivers/usb/gadget/fsl_usb2_udc.c | |
parent | wusb: add debug files for ASL, PZL and DI to the whci-hcd driver (diff) | |
parent | Fix a race condition in FASYNC handling (diff) | |
download | linux-c35fa3ea1ae8198bd65c2c6e59d9ebd68c115a59.tar.xz linux-c35fa3ea1ae8198bd65c2c6e59d9ebd68c115a59.zip |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into for-upstream
Diffstat (limited to 'drivers/usb/gadget/fsl_usb2_udc.c')
-rw-r--r-- | drivers/usb/gadget/fsl_usb2_udc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/gadget/fsl_usb2_udc.c b/drivers/usb/gadget/fsl_usb2_udc.c index 091bb55c9aa7..f3c6703cffda 100644 --- a/drivers/usb/gadget/fsl_usb2_udc.c +++ b/drivers/usb/gadget/fsl_usb2_udc.c @@ -1836,6 +1836,9 @@ int usb_gadget_unregister_driver(struct usb_gadget_driver *driver) nuke(loop_ep, -ESHUTDOWN); spin_unlock_irqrestore(&udc_controller->lock, flags); + /* report disconnect; the controller is already quiesced */ + driver->disconnect(&udc_controller->gadget); + /* unbind gadget and unhook driver. */ driver->unbind(&udc_controller->gadget); udc_controller->gadget.dev.driver = NULL; |