diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2015-05-07 13:10:25 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-06-01 09:06:59 +0200 |
commit | 0250fdf257b1e5febba19b7cc536a3c9431e50bf (patch) | |
tree | b27a7a6e843a18dee0791d478dd86fbb7a9b2ab7 /drivers/mmc/core/core.c | |
parent | b8360a4945c49c07568892b5958c08e01bf7d6d2 (diff) |
mmc: core: Don't print reset warning if reset is not supported
Check the error code for EOPNOTSUPP and do not print
reset warning in that case.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/core.c')
-rw-r--r-- | drivers/mmc/core/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index c93062bc4f2d..8c61ddd7748c 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -2371,7 +2371,8 @@ int mmc_hw_reset(struct mmc_host *host) ret = host->bus_ops->reset(host); mmc_bus_put(host); - pr_warn("%s: tried to reset card\n", mmc_hostname(host)); + if (ret != -EOPNOTSUPP) + pr_warn("%s: tried to reset card\n", mmc_hostname(host)); return ret; } |