mmc: tegra: Fix a warning message

This change “mmc: tegra: Fix a warning message” (commit d96dc68) in Linux kernel is authored by Dan Carpenter <dan.carpenter [at] oracle.com> on Wed May 15 12:35:14 2019 +0300.

Description of "mmc: tegra: Fix a warning message"

The change “mmc: tegra: Fix a warning message” introduces changes as follows.

mmc: tegra: Fix a warning message

The WARN_ON() macro takes a condition, not a warning message.  I've
changed this to use WARN(1, "msg...

Fixes: ea8fc5953e8b ("mmc: tegra: update hw tuning process")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

Linux kernel releases containing commit d96dc68

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "mmc: tegra: Fix a warning message"

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/mmc/host/sdhci-tegra.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c
index f608417ae967..10d7aaf68bab 100644
--- a/drivers/mmc/host/sdhci-tegra.c
+++ b/drivers/mmc/host/sdhci-tegra.c
@@ -865,7 +865,7 @@ static void tegra_sdhci_tap_correction(struct sdhci_host *host, u8 thd_up,
 	}
 
 	if (!first_fail) {
-		WARN_ON("no edge detected, continue with hw tuned delay.\n");
+		WARN(1, "no edge detected, continue with hw tuned delay.\n");
 	} else if (first_pass) {
 		/* set tap location at fixed tap relative to the first edge */
 		edge1 = first_fail_tap + (first_pass_tap - first_fail_tap) / 2;

The commit for this change in Linux stable tree is d96dc68 (patch).

Last modified: 2020/02/08