Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0250fdf2 authored by Adrian Hunter's avatar Adrian Hunter Committed by Ulf Hansson
Browse files

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: default avatarAdrian Hunter <adrian.hunter@intel.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent b8360a49
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2371,6 +2371,7 @@ int mmc_hw_reset(struct mmc_host *host)
	ret = host->bus_ops->reset(host);
	mmc_bus_put(host);

	if (ret != -EOPNOTSUPP)
		pr_warn("%s: tried to reset card\n", mmc_hostname(host));

	return ret;