mmc: mxs-mmc: fix error return code in mxs_mmc_probe()
Fix to return -ENODEV in the request dma error case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Reviewed-by: Marek Vasut <marex@denx.de> Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
parent
ef7aef9ab4
commit
0c5ce16bc1
1 changed files with 1 additions and 0 deletions
|
@ -639,6 +639,7 @@ static int mxs_mmc_probe(struct platform_device *pdev)
|
|||
if (!ssp->dmach) {
|
||||
dev_err(mmc_dev(host->mmc),
|
||||
"%s: failed to request dma\n", __func__);
|
||||
ret = -ENODEV;
|
||||
goto out_clk_put;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue