|
@@ -320,6 +320,15 @@ struct dev_pm_ops {
|
|
#define SET_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
|
|
#define SET_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#ifdef CONFIG_PM
|
|
|
|
+#define SET_PM_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn) \
|
|
|
|
+ .runtime_suspend = suspend_fn, \
|
|
|
|
+ .runtime_resume = resume_fn, \
|
|
|
|
+ .runtime_idle = idle_fn,
|
|
|
|
+#else
|
|
|
|
+#define SET_PM_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
|
|
|
|
+#endif
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Use this if you want to use the same suspend and resume callbacks for suspend
|
|
* Use this if you want to use the same suspend and resume callbacks for suspend
|
|
* to RAM and hibernation.
|
|
* to RAM and hibernation.
|