Commit 7913ae7d authored by Wei Yongjun's avatar Wei Yongjun Committed by Chris Ball

mmc: sh_mobile_sdhi: fix error return code in sh_mobile_sdhi_probe()

Fix to return a negative error code instead of 0 when we cannot get
IRQ source by platform_get_irq(), as done elsewhere in this function.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 5a0e8074
...@@ -273,9 +273,11 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev) ...@@ -273,9 +273,11 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev)
} }
/* There must be at least one IRQ source */ /* There must be at least one IRQ source */
if (!i) if (!i) {
ret = irq;
goto eirq; goto eirq;
} }
}
dev_info(&pdev->dev, "%s base at 0x%08lx clock rate %u MHz\n", dev_info(&pdev->dev, "%s base at 0x%08lx clock rate %u MHz\n",
mmc_hostname(host->mmc), (unsigned long) mmc_hostname(host->mmc), (unsigned long)
......
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