diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2015-11-26 07:00:46 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-12-22 05:32:14 -0500 |
commit | 9d5de93f6d543b356e39e225988ef443a7bce34c (patch) | |
tree | 1012fb9833ca90f6444469ca1a350b885440f709 /drivers/mmc | |
parent | 1ca896856281d3f1ad4f6f7d4e32e2943452de23 (diff) |
mmc: sdhci: Do not BUG on invalid vdd
The driver may not be able to set the power correctly but that
is not a reason to BUG().
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 2b17cc1246ca..4cfb26152a58 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c | |||
@@ -1299,7 +1299,9 @@ static void sdhci_set_power(struct sdhci_host *host, unsigned char mode, | |||
1299 | pwr = SDHCI_POWER_330; | 1299 | pwr = SDHCI_POWER_330; |
1300 | break; | 1300 | break; |
1301 | default: | 1301 | default: |
1302 | BUG(); | 1302 | WARN(1, "%s: Invalid vdd %#x\n", |
1303 | mmc_hostname(host->mmc), vdd); | ||
1304 | break; | ||
1303 | } | 1305 | } |
1304 | } | 1306 | } |
1305 | 1307 | ||