Message ID | 20230519082058.109760-14-biju.das.jz@bp.renesas.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | Pavel Machek |
Headers | show |
Series | Add RZ/V2M I2C and WDT support | expand |
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