mmc: mxs-mmc: fix error return code in mxs_mmc_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 19 Apr 2013 02:11:11 +0000 (10:11 +0800)
committerChris Ball <cjb@laptop.org>
Sun, 26 May 2013 18:23:14 +0000 (14:23 -0400)
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>
drivers/mmc/host/mxs-mmc.c

index 4278a1787d086a22d671e492e26e1294ef688a9d..a09ba6e221366e9302e2bd8e1d48b13f25aa3789 100644 (file)
@@ -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;
        }