dmaengine: ste_dma40: don't check for pm_runtime_suspended()
authorNarayanan G <narayanan.gopalakrishnan@stericsson.com>
Fri, 20 Jan 2012 08:26:14 +0000 (13:56 +0530)
committerFabio Baltieri <fabio.baltieri@linaro.org>
Mon, 14 Jan 2013 09:50:32 +0000 (10:50 +0100)
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>
drivers/dma/ste_dma40.c

index 2d0c63dcd84c16d69b6df3d53da9997d26835734..760576b85641215db5a3125cf4222c1a29fa6f73 100644 (file)
@@ -2782,8 +2782,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);