linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmc: sdhci-pxav3: fix error handling of sdhci_add_host
@ 2014-07-16  7:50 Xiang Wang
  2014-07-16  9:53 ` Laurent Pinchart
  2014-07-16  9:53 ` [PATCH] mmc: sdhci-pxav3: Use devm_* managed helpers Laurent Pinchart
  0 siblings, 2 replies; 6+ messages in thread
From: Xiang Wang @ 2014-07-16  7:50 UTC (permalink / raw)
  To: Chris Ball, Ulf Hansson, Marcin Wojtas, H Hartley Sweeten,
	Laurent Pinchart, Xiang Wang, linux-mmc, linux-kernel, Chao Xie,
	Xiang Wang

From: Xiang Wang <wangx@marvell.com>

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 <wangx@marvell.com>
---
 drivers/mmc/host/sdhci-pxav3.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c
index 2fd73b3..0644655 100644
--- a/drivers/mmc/host/sdhci-pxav3.c
+++ b/drivers/mmc/host/sdhci-pxav3.c
@@ -380,11 +380,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:
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-09-10 13:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-16  7:50 [PATCH] mmc: sdhci-pxav3: fix error handling of sdhci_add_host Xiang Wang
2014-07-16  9:53 ` Laurent Pinchart
2014-09-10 13:24   ` Laurent Pinchart
2014-09-10 13:56     ` Ulf Hansson
2014-07-16  9:53 ` [PATCH] mmc: sdhci-pxav3: Use devm_* managed helpers Laurent Pinchart
2014-07-26  9:47   ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).