]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdfefff42f53062c6062b1fc559c05b792ee152bd
tree74e70bef2e36b6151da56910cea7ebfa8f7e5491
parentebd88aa145b39b3faf46a2d891ddf3e297825271
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