On 2/3/2025 9:36 PM, Alex Deucher wrote: > On Fri, Jan 31, 2025 at 11:53 PM Lijo Lazar <lijo.lazar@xxxxxxx> wrote: >> >> If a device supports runtime pm, then pm_runtime_get_if_active returns 0 >> if a device is not active and 1 if already active. However, if a device >> doesn't support runtime pm, the API returns -EINVAL. A device not >> supporting runtime pm implies it's not affected by runtime pm and it's >> active. Hence no need to get() to increment usage count. Remove < 0 >> return value check. > > Might be worth mentioning that this happens when CONFIG_PM is not set > assuming that is the case.