The pm_runtime_get_sync/put_sync may not be needed in the latest
code as it is taken care in the framework.

Cc: Govindraj.R <govindraj.r...@ti.com>
Cc: Keshava Munegowda <keshava_mgo...@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajy...@ti.com>
---
 drivers/mmc/host/omap_hsmmc.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index e99487a..03e7447 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -2070,7 +2070,6 @@ static int omap_hsmmc_suspend(struct device *dev)
                return 0;
 
        if (host) {
-               pm_runtime_get_sync(host->dev);
                host->suspended = 1;
                if (host->pdata->suspend) {
                        ret = host->pdata->suspend(&pdev->dev,
@@ -2108,7 +2107,6 @@ static int omap_hsmmc_suspend(struct device *dev)
 
        }
 err:
-       pm_runtime_put_sync(host->dev);
        return ret;
 }
 
@@ -2123,7 +2121,6 @@ static int omap_hsmmc_resume(struct device *dev)
                return 0;
 
        if (host) {
-               pm_runtime_get_sync(host->dev);
 
                if (host->got_dbclk)
                        clk_enable(host->dbclk);
@@ -2145,8 +2142,6 @@ static int omap_hsmmc_resume(struct device *dev)
                if (ret == 0)
                        host->suspended = 0;
 
-               pm_runtime_mark_last_busy(host->dev);
-               pm_runtime_put_autosuspend(host->dev);
        }
 
        return ret;
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to