gpio: nca9539: suspend and resume using SET_LATE_SYSTEM_SLEEP_PM_OPS

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I5dc1d2ad9b80d5aa5245866759902328d805f531
This commit is contained in:
Cai Wenzhong 2024-07-02 18:40:42 +08:00
parent 907e477376
commit f2d24b9d54

View file

@ -298,10 +298,7 @@ static int nca9539_resume(struct device *dev)
}
static const struct dev_pm_ops nca9539_dev_pm_ops = {
.suspend = nca9539_suspend,
.resume = nca9539_resume,
.freeze = nca9539_suspend,
.restore = nca9539_resume,
SET_LATE_SYSTEM_SLEEP_PM_OPS(nca9539_suspend, nca9539_resume)
};
#endif