From: Adrian Hunter Date: Thu, 26 Nov 2015 12:00:46 +0000 (+0200) Subject: mmc: sdhci: Do not BUG on invalid vdd X-Git-Tag: firefly_0821_release~176^2~4^2~31^2~106 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4ab4d8c00baf7f8fd0859599e3e72bb68d7daf42;p=firefly-linux-kernel-4.4.55.git mmc: sdhci: Do not BUG on invalid vdd [ Upstream commit 9d5de93f6d543b356e39e225988ef443a7bce34c ] The driver may not be able to set the power correctly but that is not a reason to BUG(). Signed-off-by: Adrian Hunter Reviewed-by: Venu Byravarasu Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index fc9891fdb835..552a34dc4f82 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1315,7 +1315,9 @@ static void sdhci_set_power(struct sdhci_host *host, unsigned char mode, pwr = SDHCI_POWER_330; break; default: - BUG(); + WARN(1, "%s: Invalid vdd %#x\n", + mmc_hostname(host->mmc), vdd); + break; } }