From ecd3243783d045aa5c08ab8b0db9f7b68c08a949 Mon Sep 17 00:00:00 2001 From: Peter Chen Date: Tue, 18 Jun 2013 08:30:51 +0800 Subject: [PATCH] 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 --- drivers/usb/host/ehci-arc.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5