Commit b55ebc89 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman

mmc: sdhci-msm: Fix error return code in sdhci_msm_probe()

commit d1f63f0c upstream.

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: ad81d387 ("mmc: sdhci-msm: Add support for UHS cards")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Acked-by: default avatarGeorgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 85284c08
...@@ -647,6 +647,7 @@ static int sdhci_msm_probe(struct platform_device *pdev) ...@@ -647,6 +647,7 @@ static int sdhci_msm_probe(struct platform_device *pdev)
if (msm_host->pwr_irq < 0) { if (msm_host->pwr_irq < 0) {
dev_err(&pdev->dev, "Get pwr_irq failed (%d)\n", dev_err(&pdev->dev, "Get pwr_irq failed (%d)\n",
msm_host->pwr_irq); msm_host->pwr_irq);
ret = msm_host->pwr_irq;
goto clk_disable; goto clk_disable;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment