The dpu core driver needs to do some cleanup work for the
upper layer drivers, so it should be late suspended and
early resumed. This patch ensures this by changing driver
PM hook definitions to use SET_LATE_SYSTEM_SLEEP_PM_OPS
instead of SET_SYSTEM_SLEEP_PM_OPS.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
}
#endif
-static SIMPLE_DEV_PM_OPS(dpu_pm_ops, dpu_suspend, dpu_resume);
+static const struct dev_pm_ops dpu_pm_ops = {
+ SET_LATE_SYSTEM_SLEEP_PM_OPS(dpu_suspend, dpu_resume)
+};
static struct platform_driver dpu_driver = {
.driver = {