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

Fabio Estevam festevam at gmail.com
Tue Oct 1 09:42:26 PDT 2024


On Tue, Oct 1, 2024 at 1:32 PM Han Xu <han.xu at nxp.com> 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),



More information about the linux-mtd mailing list