From: Claudiu Beznea <claudiu.beznea.uj@xxxxxxxxxxxxxx> Hi, As a result of discussion at [1], series adds the devm_pm_domain_attach() and uses it in platform bus probe. Please provide your feedback. Thank you, Claudiu [1] https://lore.kernel.org/all/20250215130849.227812-1-claudiu.beznea.uj@xxxxxxxxxxxxxx Changes in v3: - dropped the detach_power_off argument of devm_pm_domain_attach() - use a single cleanup function - fixed build warning Changes in v2: - add devm_pm_domain_attach() - drop the devres grup open/close approach and use the newly added devm_pm_domain_attach() Claudiu Beznea (2): PM: domains: Add devres variant for dev_pm_domain_attach() driver core: platform: Use devm_pm_domain_attach() drivers/base/platform.c | 8 ++---- drivers/base/power/common.c | 50 +++++++++++++++++++++++++++++++++++++ include/linux/pm_domain.h | 6 +++++ 3 files changed, 58 insertions(+), 6 deletions(-) -- 2.43.0