MLK-11122: dma: imx-sdma: use late system sleep pm ops
authorRobin Gong <b38343@freescale.com>
Thu, 18 Jun 2015 01:40:58 +0000 (09:40 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:25 +0000 (14:47 -0500)
Use SET_LATE_SYSTEM_SLEEP_PM_OPS rather than the common sleep pm ops to ensure
sdma has resumed back before all other module drivers which use sdma resume
back.

Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit a7f8725509b494c3073b1bcca63252d5c61bb80d)

drivers/dma/imx-sdma.c

index 4a89c2f..0eb4c52 100644 (file)
@@ -2192,7 +2192,7 @@ static int sdma_resume(struct device *dev)
 #endif
 
 static const struct dev_pm_ops sdma_pm_ops = {
-       SET_SYSTEM_SLEEP_PM_OPS(sdma_suspend, sdma_resume)
+       SET_LATE_SYSTEM_SLEEP_PM_OPS(sdma_suspend, sdma_resume)
 };
 
 static struct platform_driver sdma_driver = {