mirror of https://gitee.com/openkylin/linux.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: ad81d38710
("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>
This commit is contained in:
parent
45c7a4908a
commit
d1f63f0c81
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue