Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332791
b: refs/heads/master
c: 77dcb3f
h: refs/heads/master
i:
  332789: 9b5ccc9
  332787: af6b327
  332783: 7a436e1
v: v3
  • Loading branch information
Philip Rakity authored and Chris Ball committed Sep 4, 2012
1 parent 79fe7c5 commit 1ef9b84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6231f3de1332b2a8a90e0c598ab6acc8f1eff7c1
refs/heads/master: 77dcb3f4c344d4c9619803848f1aba4d271dac7b
7 changes: 5 additions & 2 deletions trunk/drivers/mmc/host/sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2908,7 +2908,8 @@ int sdhci_add_host(struct sdhci_host *host)
if (IS_ERR(host->vmmc)) {
pr_info("%s: no vmmc regulator found\n", mmc_hostname(mmc));
host->vmmc = NULL;
}
} else
regulator_enable(host->vmmc);

#ifdef CONFIG_REGULATOR
if (host->vmmc) {
Expand Down Expand Up @@ -3165,8 +3166,10 @@ void sdhci_remove_host(struct sdhci_host *host, int dead)
tasklet_kill(&host->card_tasklet);
tasklet_kill(&host->finish_tasklet);

if (host->vmmc)
if (host->vmmc) {
regulator_disable(host->vmmc);
regulator_put(host->vmmc);
}

if (host->vqmmc) {
regulator_disable(host->vqmmc);
Expand Down

0 comments on commit 1ef9b84

Please sign in to comment.