Commit 0c5ce16b authored by Wei Yongjun's avatar Wei Yongjun Committed by Chris Ball
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: default avatarMarek Vasut <marex@denx.de>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent ef7aef9a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}