mmc: host: omap_hsmmc: don't use ->set_power to set initial regulator state
authorKishon Vijay Abraham I <kishon@ti.com>
Thu, 27 Aug 2015 09:14:03 +0000 (14:44 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 27 Aug 2015 12:54:07 +0000 (14:54 +0200)
commitc8518efa6de999bcbd638702c2a2d72fe83431e4
tree74e70bef2e36b6151da56910cea7ebfa8f7e5491
parent97fe7e5ab6318ea5716f86be3b4ca8776a9e609c
mmc: host: omap_hsmmc: don't use ->set_power to set initial regulator state

If the regulator is enabled on boot (checked using regulator_is_enabled),
invoke regulator_enable() so that the usecount reflects the correct
state of the regulator and then disable the regulator so that the
initial state of the regulator is disabled. Avoid using ->set_power,
since set_power also takes care of setting the voltages which is not
needed at this point.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/omap_hsmmc.c