diff options
author | 2014-10-01 07:14:07 -0500 | |
---|---|---|
committer | 2014-11-10 12:40:26 +0100 | |
commit | fbfaf0326b725cfbcc4169294cffefcad5ce64aa (patch) | |
tree | 04f2476584eb57d5730bc44b860dbbb04e9a1049 /drivers/mmc | |
parent | mmc: sdhci-esdhc-imx: don't exit in case of no pinctrl states (diff) | |
download | wireguard-linux-fbfaf0326b725cfbcc4169294cffefcad5ce64aa.tar.xz wireguard-linux-fbfaf0326b725cfbcc4169294cffefcad5ce64aa.zip |
mmc: sdhci: Balance vmmc regulator_disable()
As a follow-up of commit
"mmc: sdhci: Balance vmmc regulator_enable(), and always enable vqmmc"
vmmc regulator disable is also not needed in sdhci_remove_host.
The regulator is completely controlled by mmc_power_up and mmc_power_off
functions and is already disabled by the time of removing the host.
Extra regulator_disable call in sdhci_remove_host is unbalanced and
causes a warning reported by regulator core, so should be removed.
Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index ada1a3ea3a87..179ce06eec73 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -3339,9 +3339,6 @@ void sdhci_remove_host(struct sdhci_host *host, int dead) tasklet_kill(&host->finish_tasklet); - if (!IS_ERR(mmc->supply.vmmc)) - regulator_disable(mmc->supply.vmmc); - if (!IS_ERR(mmc->supply.vqmmc)) regulator_disable(mmc->supply.vqmmc); |