diff options
Diffstat (limited to 'include/linux/pm.h')
| -rw-r--r-- | include/linux/pm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h index a224c7f5c377..7a830a7d516f 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h | |||
| @@ -320,6 +320,15 @@ struct dev_pm_ops { | |||
| 320 | #define SET_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn) | 320 | #define SET_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn) |
| 321 | #endif | 321 | #endif |
| 322 | 322 | ||
| 323 | #ifdef CONFIG_PM | ||
| 324 | #define SET_PM_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn) \ | ||
| 325 | .runtime_suspend = suspend_fn, \ | ||
| 326 | .runtime_resume = resume_fn, \ | ||
| 327 | .runtime_idle = idle_fn, | ||
| 328 | #else | ||
| 329 | #define SET_PM_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn) | ||
| 330 | #endif | ||
| 331 | |||
| 323 | /* | 332 | /* |
| 324 | * Use this if you want to use the same suspend and resume callbacks for suspend | 333 | * Use this if you want to use the same suspend and resume callbacks for suspend |
| 325 | * to RAM and hibernation. | 334 | * to RAM and hibernation. |
