[PATCH v1 0/3] PM: runtime: Auto-cleanup macros for pm_runtime_resume_and_get()

Rafael J. Wysocki
2025-09-19T16:40:55Z

Hi All,

This series adds two auto-cleanup macros for runtime PM usage counter
incrementations carried out by pm_runtime_resume_and_get() ([1/3]),
converts the only user of the previously introduced DEFINE_FREE()
macro for pm_runtime_put() to using one of the new macros ([2/3]),
and drops the DEFINE_FREE() mentioned above ([3/3]).

The new macros should be somewhat more straightforward to use than
the existing _FREE and they enforce error handling.

Thanks!