diff options
Diffstat (limited to 'include/linux/pm.h')
| -rw-r--r-- | include/linux/pm.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h index 52d9724db9dc..5ac2c9ba5baf 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -374,11 +374,7 @@ const struct dev_pm_ops __maybe_unused name = { \ SET_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn) \ } -#ifdef CONFIG_PM -#define pm_ptr(_ptr) (_ptr) -#else -#define pm_ptr(_ptr) NULL -#endif +#define pm_ptr(_ptr) PTR_IF(IS_ENABLED(CONFIG_PM), (_ptr)) /* * PM_EVENT_ messages |
