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: https://git.stricted.de/?a=commitdiff_plain;h=0250fdf257b1e5febba19b7cc536a3c9431e50bf;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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; }