Re: [PATCH 1/2] mtd: nand: raw: gpmi: switch to SYSTEM_SLEEP_PM_OPS

From: Fabio Estevam
Date: Tue Oct 01 2024 - 12:42:47 EST


On Tue, Oct 1, 2024 at 1:32 PM Han Xu <han.xu@xxxxxxx> wrote:

> static const struct dev_pm_ops gpmi_pm_ops = {
> - SET_SYSTEM_SLEEP_PM_OPS(gpmi_pm_suspend, gpmi_pm_resume)
> - SET_RUNTIME_PM_OPS(gpmi_runtime_suspend, gpmi_runtime_resume, NULL)
> + SYSTEM_SLEEP_PM_OPS(gpmi_pm_suspend, gpmi_pm_resume)
> + RUNTIME_PM_OPS(gpmi_runtime_suspend, gpmi_runtime_resume, NULL)
> };

You missed to change .pm = &gpmi_pm_ops, to .pm = pm_ptr(&gpmi_pm_ops),