From: Peter Chen Date: Tue, 18 Jun 2013 00:30:51 +0000 (+0800) Subject: ENGR00262528-2 usb: host: the clock needs to be off if probe fails X-Git-Tag: v3.0.35-fsl_4.1.0~85 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ecd3243783d045aa5c08ab8b0db9f7b68c08a949;p=karo-tx-linux.git 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 --- 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;