aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2014-12-11 08:35:55 -0500
committerUlf Hansson <ulf.hansson@linaro.org>2015-01-19 03:56:23 -0500
commit6f2d3c89db7c2ef6ceb03feefa325f52ea639a41 (patch)
tree65e9cc0715aa6bebafecc50ffcdaa03b10724988
parent106276bbc98bd0bac554edce0869d356596ff9ae (diff)
mmc: mmci: Do pm_runtime_put() after the host has been added
Previously the pm_runtime_put() caused the device to be runtime PM suspended, but then immediately being resumed when we add the host. Prevent this unnecessary runtime PM suspend/resume cycle during ->probe() by moving the call to pm_runtime_put() after mmc_add_host(). Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/mmci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index 8232e9a02d40..88aefa6fa8b1 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -1739,10 +1739,10 @@ static int mmci_probe(struct amba_device *dev,
1739 1739
1740 pm_runtime_set_autosuspend_delay(&dev->dev, 50); 1740 pm_runtime_set_autosuspend_delay(&dev->dev, 50);
1741 pm_runtime_use_autosuspend(&dev->dev); 1741 pm_runtime_use_autosuspend(&dev->dev);
1742 pm_runtime_put(&dev->dev);
1743 1742
1744 mmc_add_host(mmc); 1743 mmc_add_host(mmc);
1745 1744
1745 pm_runtime_put(&dev->dev);
1746 return 0; 1746 return 0;
1747 1747
1748 clk_disable: 1748 clk_disable: