canfd:ipms:modify runtime PM callback funciton
authorWilliam Qiu <william.qiu@starfivetech.com>
Tue, 25 Oct 2022 02:36:38 +0000 (10:36 +0800)
committermason.huo <mason.huo@starfivetech.com>
Thu, 27 Oct 2022 05:57:27 +0000 (13:57 +0800)
modify runtime PM callback function.

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
drivers/net/can/ipms_canfd.c

index 7f12bed..0212b43 100644 (file)
@@ -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" },