Fix build waring with CONFIG_PM_SLEEP=n.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
(cherry picked from commit
9967e06ba509ba84fec4b3848341c58d1c4d740a)
return 0;
}
+#ifdef CONFIG_PM_SLEEP
static int pfuze_reg_save_restore(struct pfuze_chip *pfuze_chip, int start,
int end, int index, bool save)
{
err_ret:
return index;
}
+#endif
static const struct dev_pm_ops pfuze_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(pfuze_suspend, pfuze_resume)