Skip to content

Commit d1f63f0

Browse files
Wei YongjunUlf Hansson
authored andcommitted
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: ad81d38 ("mmc: sdhci-msm: Add support for UHS cards") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Acked-by: Georgi Djakov <georgi.djakov@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 45c7a49 commit d1f63f0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/mmc/host/sdhci-msm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,7 @@ static int sdhci_msm_probe(struct platform_device *pdev)
647647
if (msm_host->pwr_irq < 0) {
648648
dev_err(&pdev->dev, "Get pwr_irq failed (%d)\n",
649649
msm_host->pwr_irq);
650+
ret = msm_host->pwr_irq;
650651
goto clk_disable;
651652
}
652653

0 commit comments

Comments
 (0)