From: Adrian Hunter Date: Thu, 7 May 2015 10:10:25 +0000 (+0300) Subject: mmc: core: Don't print reset warning if reset is not supported X-Git-Tag: firefly_0821_release~176^2~1614^2~60 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0250fdf257b1e5febba19b7cc536a3c9431e50bf;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Ulf Hansson --- 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; }