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-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0250fdf257b1e5febba19b7cc536a3c9431e50bf;p=linux.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 c93062bc4f2d2..8c61ddd7748ce 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; }