diff options
author | Peter Chen <peter.chen@freescale.com> | 2013-06-18 08:30:51 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2013-06-19 18:13:59 +0800 |
commit | af07a0003fff4203499cacbd13bf32e93c4e6c9b (patch) | |
tree | fb3edebd29816484d637a21564546126584a99d0 /drivers | |
parent | b207bb1e5f42305ba438f67815f919838f489519 (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-x | drivers/usb/host/ehci-arc.c | 2 |
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; |