Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184716
b: refs/heads/master
c: 6da20c8
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Hunter authored and Tony Lindgren committed Feb 15, 2010
1 parent 6afd85d commit 5123b6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 4380eea266940a82e5b8edd5c16ce0289679bcfe
refs/heads/master: 6da20c89af64b75302399369a90b9d50c1a87665
9 changes: 3 additions & 6 deletions trunk/drivers/mmc/host/omap_hsmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,8 @@ static int omap_hsmmc_23_set_power(struct device *dev, int slot, int power_on,
ret = mmc_regulator_set_ocr(host->vcc, 0);
}
} else {
if (host->vcc_aux) {
ret = regulator_is_enabled(host->vcc_aux);
if (ret > 0)
ret = regulator_disable(host->vcc_aux);
}
if (host->vcc_aux)
ret = regulator_disable(host->vcc_aux);
if (ret == 0)
ret = mmc_regulator_set_ocr(host->vcc, 0);
}
Expand Down Expand Up @@ -1975,7 +1972,7 @@ static int __init omap_hsmmc_probe(struct platform_device *pdev)
host->slot_id = 0;
host->mapbase = res->start;
host->base = ioremap(host->mapbase, SZ_4K);
host->power_mode = -1;
host->power_mode = MMC_POWER_OFF;

platform_set_drvdata(pdev, host);
INIT_WORK(&host->mmc_carddetect_work, omap_hsmmc_detect);
Expand Down

0 comments on commit 5123b6e

Please sign in to comment.