From: Kishon Vijay Abraham I Date: Mon, 25 Nov 2013 10:01:22 +0000 (+0530) Subject: usb: dwc3: power off usb phy in error path X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=501fae512584e601d34945efccd35c5e5d759132;p=deliverable%2Flinux.git usb: dwc3: power off usb phy in error path usb phy was power'ed on but was never power'ed off in the error path. Fix it. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 4dd1f7e2edc8..a49217ae3533 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -569,6 +569,8 @@ err2: dwc3_event_buffers_cleanup(dwc); err1: + usb_phy_set_suspend(dwc->usb2_phy, 1); + usb_phy_set_suspend(dwc->usb3_phy, 1); dwc3_core_exit(dwc); err0: