Commit d1f63f0c authored by Wei Yongjun's avatar Wei Yongjun Committed by Ulf Hansson
Browse files

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: ad81d387

 ("mmc: sdhci-msm: Add support for UHS cards")
Signed-off-by: default avatarWei Yongjun <>
Acked-by: default avatarAdrian Hunter <>
Acked-by: default avatarGeorgi Djakov <>
Signed-off-by: default avatarUlf Hansson <>
parent 45c7a490
...@@ -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;
} }
Supports Markdown
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