Commit bc35d5ed authored by Mark Brown's avatar Mark Brown
Browse files

mmc: core: Indicate that vmmcq may be absent



Use regulator_get_optional() to tell the core that requests for the vmmcq
regulator can fail in a real system.

Signed-off-by: default avatarMark Brown <broonie@linaro.org>
Acked-by: default avatarChris Ball <cjb@laptop.org>
parent de1dd9fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1313,7 +1313,7 @@ int mmc_regulator_get_supply(struct mmc_host *mmc)

	supply = devm_regulator_get(dev, "vmmc");
	mmc->supply.vmmc = supply;
	mmc->supply.vqmmc = devm_regulator_get(dev, "vqmmc");
	mmc->supply.vqmmc = devm_regulator_get_optional(dev, "vqmmc");

	if (IS_ERR(supply))
		return PTR_ERR(supply);