summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2013-06-18 08:30:51 +0800
committerPeter Chen <peter.chen@freescale.com>2013-06-19 18:13:59 +0800
commitaf07a0003fff4203499cacbd13bf32e93c4e6c9b (patch)
treefb3edebd29816484d637a21564546126584a99d0 /drivers
parentb207bb1e5f42305ba438f67815f919838f489519 (diff)
ENGR00262528-2 usb: host: the clock needs to be off if probe fails
The clock needs to be off if probe fails. Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'drivers')
-rwxr-xr-xdrivers/usb/host/ehci-arc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-arc.c b/drivers/usb/host/ehci-arc.c
index 4f78f8f3dfdf..dde47dd76e5f 100755
--- a/drivers/usb/host/ehci-arc.c
+++ b/drivers/usb/host/ehci-arc.c
@@ -316,6 +316,8 @@ err2:
err1:
dev_err(&pdev->dev, "init %s fail, %d\n", dev_name(&pdev->dev), retval);
fsl_usb_lowpower_mode(pdata, true);
+ if (pdata->usb_clock_for_pm)
+ pdata->usb_clock_for_pm(false);
if (pdata->exit && pdata->pdev)
pdata->exit(pdata->pdev);
return retval;