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 <[email protected]>
Reviewed-by: Venu Byravarasu <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
This commit is contained in:
Adrian Hunter 2015-11-26 14:00:46 +02:00 • committed by Ulf Hansson
commit 9d5de93f6d

View file

@ -1299,7 +1299,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;
}
}