From: William Qiu Date: Tue, 25 Oct 2022 02:36:38 +0000 (+0800) Subject: canfd:ipms:modify runtime PM callback funciton X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d759c0d4aaf74790ac939a1c97f30fe297c84ae6;p=platform%2Fkernel%2Flinux-starfive.git canfd:ipms:modify runtime PM callback funciton modify runtime PM callback function. Signed-off-by: William Qiu --- diff --git a/drivers/net/can/ipms_canfd.c b/drivers/net/can/ipms_canfd.c index 7f12bed..0212b43 100644 --- a/drivers/net/can/ipms_canfd.c +++ b/drivers/net/can/ipms_canfd.c @@ -1204,8 +1204,12 @@ static int canfd_runtime_resume(struct device *dev) } #endif -static UNIVERSAL_DEV_PM_OPS(canfd_pm_ops, canfd_runtime_suspend, - canfd_runtime_resume, NULL); +static const struct dev_pm_ops canfd_pm_ops = { + SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, + pm_runtime_force_resume) + SET_RUNTIME_PM_OPS(canfd_runtime_suspend, + canfd_runtime_resume, NULL) +}; static const struct of_device_id canfd_of_match[] = { { .compatible = "ipms,can" },