diff options
author | Narayanan G <narayanan.gopalakrishnan@stericsson.com> | 2012-01-20 03:26:14 -0500 |
---|---|---|
committer | Fabio Baltieri <fabio.baltieri@linaro.org> | 2013-01-14 04:50:32 -0500 |
commit | 42365cf0fa19473dde5fe226b0e7e9ab8ea18af8 (patch) | |
tree | a0ee91453a5fcced002ddf724bd16ca921fd05cb /drivers/dma | |
parent | 92bb6cdb5302a4b0b3c6b6cfc0854aaed882c4bc (diff) |
dmaengine: ste_dma40: don't check for pm_runtime_suspended()
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.
Signed-off-by: Narayanan G <narayanan.gopalakrishnan@stericsson.com>
Reviewed-by: Rabin Vincent <rabin.vincent@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/ste_dma40.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 2d0c63dcd84c..760576b85641 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c | |||
@@ -2782,8 +2782,6 @@ static int dma40_pm_suspend(struct device *dev) | |||
2782 | struct platform_device *pdev = to_platform_device(dev); | 2782 | struct platform_device *pdev = to_platform_device(dev); |
2783 | struct d40_base *base = platform_get_drvdata(pdev); | 2783 | struct d40_base *base = platform_get_drvdata(pdev); |
2784 | int ret = 0; | 2784 | int ret = 0; |
2785 | if (!pm_runtime_suspended(dev)) | ||
2786 | return -EBUSY; | ||
2787 | 2785 | ||
2788 | if (base->lcpa_regulator) | 2786 | if (base->lcpa_regulator) |
2789 | ret = regulator_disable(base->lcpa_regulator); | 2787 | ret = regulator_disable(base->lcpa_regulator); |