diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2011-11-02 14:55:11 -0700 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2011-11-02 14:55:55 -0700 |
commit | a3822acf036f2520bfb2658627f545e5d54dd5a1 (patch) | |
tree | 380f5795d056ea4c3d8ba3cf4cf6abf5e76c8605 /drivers/mmc | |
parent | b08adab094923cbf964a5adb838d85ed9a4e8f59 (diff) | |
download | kernel_samsung_tuna-a3822acf036f2520bfb2658627f545e5d54dd5a1.zip kernel_samsung_tuna-a3822acf036f2520bfb2658627f545e5d54dd5a1.tar.gz kernel_samsung_tuna-a3822acf036f2520bfb2658627f545e5d54dd5a1.tar.bz2 |
mmc: omap_hsmmc: Keep MMC_PM_KEEP_POWER for built_in device
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index bdd8081..b7ed408 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -2345,6 +2345,8 @@ static int omap_hsmmc_suspend(struct device *dev) } } cancel_work_sync(&host->mmc_carddetect_work); + if (mmc_slot(host).mmc_data.built_in) + host->mmc->pm_flags |= MMC_PM_KEEP_POWER; if (host->mmc->card && (host->mmc->card->type != MMC_TYPE_SDIO)) ret = mmc_suspend_host(host->mmc); mmc_host_enable(host->mmc); |