diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-04-18 22:11:11 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-05-26 14:23:14 -0400 |
commit | 0c5ce16bc11ae3b80d2e3f6caf4483162acb1f62 (patch) | |
tree | 7d6cecd4221edd76e680d71f5dee9b0c4f395f62 /drivers/mmc | |
parent | ef7aef9ab41d9aa95e9c2e2fdd4b5dbbf890f1d7 (diff) |
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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/mxs-mmc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c index 4278a1787d08..a09ba6e22136 100644 --- a/drivers/mmc/host/mxs-mmc.c +++ b/drivers/mmc/host/mxs-mmc.c | |||
@@ -639,6 +639,7 @@ static int mxs_mmc_probe(struct platform_device *pdev) | |||
639 | if (!ssp->dmach) { | 639 | if (!ssp->dmach) { |
640 | dev_err(mmc_dev(host->mmc), | 640 | dev_err(mmc_dev(host->mmc), |
641 | "%s: failed to request dma\n", __func__); | 641 | "%s: failed to request dma\n", __func__); |
642 | ret = -ENODEV; | ||
642 | goto out_clk_put; | 643 | goto out_clk_put; |
643 | } | 644 | } |
644 | 645 | ||