Commit f68190c8 authored by Ulf Hansson's avatar Ulf Hansson Committed by Vinod Koul

dmaengine: pl330: Convert to the *_late and *_early system sleep callbacks

It has turned out that it's in general a good idea for dmaengines to allow
DMA requests during the entire dpm_suspend() phase. Therefore, convert the
pl330 driver into using SET_LATE_SYSTEM_SLEEP_PM_OPS.
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Tested-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20191205143746.24873-3-ulf.hansson@linaro.orgSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent a39cddc9
...@@ -2981,7 +2981,9 @@ static int __maybe_unused pl330_resume(struct device *dev) ...@@ -2981,7 +2981,9 @@ static int __maybe_unused pl330_resume(struct device *dev)
return ret; return ret;
} }
static SIMPLE_DEV_PM_OPS(pl330_pm, pl330_suspend, pl330_resume); static const struct dev_pm_ops pl330_pm = {
SET_LATE_SYSTEM_SLEEP_PM_OPS(pl330_suspend, pl330_resume)
};
static int static int
pl330_probe(struct amba_device *adev, const struct amba_id *id) pl330_probe(struct amba_device *adev, const struct amba_id *id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment