]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00262528-2 usb: host: the clock needs to be off if probe fails
authorPeter Chen <peter.chen@freescale.com>
Tue, 18 Jun 2013 00:30:51 +0000 (08:30 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:14:06 +0000 (14:14 +0200)
The clock needs to be off if probe fails.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/host/ehci-arc.c

index 4f78f8f3dfdf01634b7f0b8d6b99f32de206e8bb..dde47dd76e5fe5a70dea8b7ddd90dfc42454bb70 100755 (executable)
@@ -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;