Browse Source

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>
Adrian Hunter 9 years ago
parent
commit
9d5de93f6d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      drivers/mmc/host/sdhci.c

+ 3 - 1
drivers/mmc/host/sdhci.c

@@ -1299,7 +1299,9 @@ static void sdhci_set_power(struct sdhci_host *host, unsigned char mode,
 			pwr = SDHCI_POWER_330;
 			pwr = SDHCI_POWER_330;
 			break;
 			break;
 		default:
 		default:
-			BUG();
+			WARN(1, "%s: Invalid vdd %#x\n",
+			     mmc_hostname(host->mmc), vdd);
+			break;
 		}
 		}
 	}
 	}