From: Narayanan G Date: Fri, 20 Jan 2012 08:26:14 +0000 (+0530) Subject: dmaengine: ste_dma40: don't check for pm_runtime_suspended() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=42365cf0fa19473dde5fe226b0e7e9ab8ea18af8;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Reviewed-by: Rabin Vincent Acked-by: Linus Walleij Acked-by: Vinod Koul Signed-off-by: Fabio Baltieri --- diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 2d0c63dcd84..760576b8564 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) 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);