projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f994b66
)
canfd:ipms:modify runtime PM callback funciton
author
William Qiu
<william.qiu@starfivetech.com>
Tue, 25 Oct 2022 02:36:38 +0000
(10:36 +0800)
committer
mason.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
patch
|
blob
|
history
diff --git
a/drivers/net/can/ipms_canfd.c
b/drivers/net/can/ipms_canfd.c
index
7f12bed
..
0212b43
100644
(file)
--- 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" },