Commit 42a166d7 authored by Yue Hu's avatar Yue Hu Committed by Ulf Hansson

mmc: sdio: Return ret if sdio_disable_func() fails

We should return any possible error returned by mmc_io_rw_direct()
rather than only -EIO in sdio_disable_func() failure path.
Signed-off-by: default avatarYue Hu <huyue2@yulong.com>
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20200604100102.13572-1-zbestahu@gmail.comSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 47fad46b
...@@ -133,7 +133,7 @@ int sdio_disable_func(struct sdio_func *func) ...@@ -133,7 +133,7 @@ int sdio_disable_func(struct sdio_func *func)
err: err:
pr_debug("SDIO: Failed to disable device %s\n", sdio_func_id(func)); pr_debug("SDIO: Failed to disable device %s\n", sdio_func_id(func));
return -EIO; return ret;
} }
EXPORT_SYMBOL_GPL(sdio_disable_func); EXPORT_SYMBOL_GPL(sdio_disable_func);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment