mmc: host: omap_hsmmc: enable/disable vmmc_aux regulator based on previous state
authorKishon Vijay Abraham I <kishon@ti.com>
Thu, 27 Aug 2015 09:14:04 +0000 (14:44 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 27 Aug 2015 12:54:07 +0000 (14:54 +0200)
commit3f77f702389b7fbc955ec95721ce3861e40697fc
treef151a6f112f262d66acda483cc48c899cb6f4ec2
parentc8518efa6de999bcbd638702c2a2d72fe83431e4
mmc: host: omap_hsmmc: enable/disable vmmc_aux regulator based on previous state

enable vmmc_aux regulator only if it is in disabled state and disable
vmmc_aux regulator only if it is in enabled state.

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