projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef7aef9
)
mmc: mxs-mmc: fix error return code in mxs_mmc_probe()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Fri, 19 Apr 2013 02:11:11 +0000
(10:11 +0800)
committer
Chris 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/host/mxs-mmc.c
b/drivers/mmc/host/mxs-mmc.c
index 4278a1787d086a22d671e492e26e1294ef688a9d..a09ba6e221366e9302e2bd8e1d48b13f25aa3789 100644
(file)
--- 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)
if (!ssp->dmach) {
dev_err(mmc_dev(host->mmc),
"%s: failed to request dma\n", __func__);
+ ret = -ENODEV;
goto out_clk_put;
}