Linux MultiMedia Card development
 help / color / mirror / Atom feed
* [PATCH -next] mmc: sdhci-msm: Fix error return code in sdhci_msm_probe()
@ 2016-10-26 15:04 Wei Yongjun
  2016-10-27  6:24 ` Adrian Hunter
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Wei Yongjun @ 2016-10-26 15:04 UTC (permalink / raw)
  To: Adrian Hunter, Ulf Hansson, Georgi Djakov; +Cc: Wei Yongjun, linux-mmc

From: Wei Yongjun <weiyongjun1@huawei.com>

Fix to return a negative error code from the platform_get_irq_byname()
error handling case instead of 0, as done elsewhere in this function.

Fixes: ad81d3871004 ("mmc: sdhci-msm: Add support for UHS cards")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 drivers/mmc/host/sdhci-msm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
index 795f16f..b78d72f 100644
--- a/drivers/mmc/host/sdhci-msm.c
+++ b/drivers/mmc/host/sdhci-msm.c
@@ -649,6 +649,7 @@ static int sdhci_msm_probe(struct platform_device *pdev)
 	if (msm_host->pwr_irq < 0) {
 		dev_err(&pdev->dev, "Get pwr_irq failed (%d)\n",
 			msm_host->pwr_irq);
+		ret = msm_host->pwr_irq;
 		goto clk_disable;
 	}


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

end of thread, other threads:[~2016-10-27 15:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-26 15:04 [PATCH -next] mmc: sdhci-msm: Fix error return code in sdhci_msm_probe() Wei Yongjun
2016-10-27  6:24 ` Adrian Hunter
2016-10-27  7:20 ` Georgi Djakov
2016-10-27  7: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