|
@@ -342,7 +342,7 @@ struct dev_pm_ops {
|
|
|
#define SET_LATE_SYSTEM_SLEEP_PM_OPS(suspend_fn, resume_fn)
|
|
|
#endif
|
|
|
|
|
|
-#ifdef CONFIG_PM_RUNTIME
|
|
|
+#ifdef CONFIG_PM
|
|
|
#define SET_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn) \
|
|
|
.runtime_suspend = suspend_fn, \
|
|
|
.runtime_resume = resume_fn, \
|
|
@@ -351,14 +351,7 @@ struct dev_pm_ops {
|
|
|
#define SET_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
|
|
|
#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
|
|
|
+#define SET_PM_RUNTIME_PM_OPS SET_RUNTIME_PM_OPS
|
|
|
|
|
|
/*
|
|
|
* Use this if you want to use the same suspend and resume callbacks for suspend
|