diff options
author | Eliad Peller <eliad@wizery.com> | 2011-05-09 04:32:31 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-05-24 23:53:56 -0400 |
commit | a8e6df7343cf67c9104955da0de70075a6ee1dfd (patch) | |
tree | 5368d2c28837b304461e3fabf7f78ac76e671200 /drivers/mmc/core | |
parent | 1d6c4e0a00399de9de3f066de175eb5fcc4b7b46 (diff) |
mmc: core: clear MMC_PM_KEEP_POWER flag on resume
Since the MMC_PM_KEEP_POWER flag should be set on each suspend,
it should also cleared on each resume.
Upon resuming, we have to know if power was kept
(for re-initialization, etc.), so clear it just after resuming.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r-- | drivers/mmc/core/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 61c6c0b8f0e0..72e113e7f253 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c | |||
@@ -1829,6 +1829,7 @@ int mmc_resume_host(struct mmc_host *host) | |||
1829 | err = 0; | 1829 | err = 0; |
1830 | } | 1830 | } |
1831 | } | 1831 | } |
1832 | host->pm_flags &= ~MMC_PM_KEEP_POWER; | ||
1832 | mmc_bus_put(host); | 1833 | mmc_bus_put(host); |
1833 | 1834 | ||
1834 | return err; | 1835 | return err; |