From: Xiang Wang Date: Wed, 16 Jul 2014 07:50:09 +0000 (+0800) Subject: mmc: sdhci-pxav3: fix error handling of sdhci_add_host X-Git-Tag: v3.16.35~3042 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4af1ded4c437f1713109cc7f6c7c674a873934da;p=thirdparty%2Fkernel%2Fstable.git mmc: sdhci-pxav3: fix error handling of sdhci_add_host commit 87d2163dae1f2388c7ccda5269be8d58e24382dd upstream. Commit 0dcaa2499b7d111bd70da5b0976c34210c850fb3 improved error handling of sdhci_add_host. However, "err_of_parse" and "err_cd_req" should be placed after "pm_runtime_disable(&pdev->dev)". Signed-off-by: Xiang Wang Acked-by: Laurent Pinchart Signed-off-by: Ulf Hansson [ luis: 3.16-stable prereq for: aa8165f91442 "mmc: sdhci-pxav3: do the mbus window configuration after enabling clocks" ] Signed-off-by: Luis Henriques --- diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c index 10846b04809a7..6675be324cbcb 100644 --- a/drivers/mmc/host/sdhci-pxav3.c +++ b/drivers/mmc/host/sdhci-pxav3.c @@ -382,11 +382,11 @@ static int sdhci_pxav3_probe(struct platform_device *pdev) return 0; -err_of_parse: -err_cd_req: err_add_host: pm_runtime_put_sync(&pdev->dev); pm_runtime_disable(&pdev->dev); +err_of_parse: +err_cd_req: clk_disable_unprepare(clk); clk_put(clk); err_clk_get: