Messages in this thread |  | | From | Arnd Bergmann <> | Date | Sun, 27 Feb 2022 18:51:38 +0100 | Subject | Re: [PATCH -next] misc: rtsx: fix build for CONFIG_PM not set |
| |
On Sun, Feb 27, 2022 at 6:46 PM Paul Cercueil <paul@crapouillou.net> wrote: > Le dim., févr. 27 2022 at 18:30:16 +0100, Arnd Bergmann > > There could be a DEFINE_DEV_PM_OPS(), but I don't think that's really > needed - you can very well declare your struct dev_pm_ops without using > one of these macros. Just make sure to use the SYSTEM_SLEEP_PM_OPS / > RUNTIME_PM_OPS macros for the callbacks and pm_ptr() for the device.pm > pointer.
Ah, of course, so it comes down to s/SET_SYSTEM_SLEEP_PM_OPS/SYSTEM_SLEEP_PM_OPS/ while removing all the #ifdef an __maybe_unused annotations. The pm_ptr() in driver.pm makes this slightly more optimized AFAICT, but has no effect on behavior, right?
Arnd
|  |