From: Wei Yongjun Date: Wed, 26 Oct 2016 15:04:41 +0000 (+0000) Subject: mmc: sdhci-msm: Fix error return code in sdhci_msm_probe() X-Git-Tag: v4.9-rc4~10^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1f63f0c81c22ba705fcd149a1fcec37b734d818;p=platform%2Fkernel%2Flinux-exynos.git mmc: sdhci-msm: Fix error return code in sdhci_msm_probe() 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 Acked-by: Adrian Hunter Acked-by: Georgi Djakov Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index 8ef44a2a..90ed2e1 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -647,6 +647,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; }