aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/core/hcd.c')
-rw-r--r--drivers/usb/core/hcd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index 3856ba4518da..24b084748b63 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -3052,8 +3052,11 @@ usb_hcd_platform_shutdown(struct platform_device *dev)
3052{ 3052{
3053 struct usb_hcd *hcd = platform_get_drvdata(dev); 3053 struct usb_hcd *hcd = platform_get_drvdata(dev);
3054 3054
3055 if (hcd->driver->shutdown) 3055 /* If OTG device, OTG core takes care of shutting down HCD */
3056 hcd->driver->shutdown(hcd); 3056 if (usb_otg_shutdown_hcd(hcd)) {
3057 if (hcd->driver->shutdown)
3058 hcd->driver->shutdown(hcd);
3059 }
3057} 3060}
3058EXPORT_SYMBOL_GPL(usb_hcd_platform_shutdown); 3061EXPORT_SYMBOL_GPL(usb_hcd_platform_shutdown);
3059 3062