summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNarayanan G <narayanan.gopalakrishnan@stericsson.com>2012-01-20 13:56:14 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:02:56 +0200
commit5926dc0478e3506a9fc2e08e59ab1071e7060d9f (patch)
treed0c16ef44760674e2ad8be2a7a7cedaf369552b1
parent746fe9c108ae7cc79da9ccf1437b97db98444516 (diff)
dma40: don't check for pm_runtime_suspended()dma
The check for runtime suspend is not needed during a regular suspend, as the framework takes care of this. This fixes the issue of DMA driver not letting the system to go to deepsleep in the first attempt. ST-Ericsson ID: 411801 ST-Ericsson FOSS-OUT ID: NA ST-Ericsson Linux next: NA Change-Id: I2b6ef1593da3386b8b93c9d21eaa3a1f7daa7cd6 Signed-off-by: Narayanan G <narayanan.gopalakrishnan@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/46030 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
-rw-r--r--drivers/dma/ste_dma40.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
index 1c20b4ebc8b..0fe43c3f598 100644
--- a/drivers/dma/ste_dma40.c
+++ b/drivers/dma/ste_dma40.c
@@ -2832,8 +2832,6 @@ static int dma40_pm_suspend(struct device *dev)
struct platform_device *pdev = to_platform_device(dev);
struct d40_base *base = platform_get_drvdata(pdev);
int ret = 0;
- if (!pm_runtime_suspended(dev))
- return -EBUSY;
if (base->lcpa_regulator)
ret = regulator_disable(base->lcpa_regulator);