Skip to content

Commit

Permalink
mmc: sdhci-msm: Fix error return code in sdhci_msm_probe()
Browse files Browse the repository at this point in the history
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: ad81d38 ("mmc: sdhci-msm: Add support for UHS cards")
Signed-off-by: Wei Yongjun <[email protected]>
Acked-by: Adrian Hunter <[email protected]>
Acked-by: Georgi Djakov <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
  • Loading branch information
Wei Yongjun authored and storulf committed Oct 27, 2016
1 parent 45c7a49 commit d1f63f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mmc/host/sdhci-msm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d1f63f0

Please sign in to comment.