]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mmc: sdhci: Do not BUG on invalid vdd
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 26 Nov 2015 12:00:46 +0000 (14:00 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 22 Dec 2015 10:32:14 +0000 (11:32 +0100)
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>
drivers/mmc/host/sdhci.c

index 2b17cc1246caa146f157d70164825d22b906de8b..4cfb26152a58f5ccb90ff2433724f892c7347764 100644 (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;
                }
        }