]> www.infradead.org Git - users/willy/xarray.git/commit
PM: domains: add device managed version of dev_pm_domain_attach|detach_list()
authorDikshita Agarwal <quic_dikshita@quicinc.com>
Mon, 19 Aug 2024 10:29:09 +0000 (15:59 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Aug 2024 09:19:49 +0000 (11:19 +0200)
commitb6cee6544d01b8ac01232d343b1b2b594d94d61c
tree0246bdaf94551747ee085a75e9e5f49c52eebeec
parentcfee1b50775869de9076d021ea11a8438854dcba
PM: domains: add device managed version of dev_pm_domain_attach|detach_list()

Add the devres-enabled version of dev_pm_domain_attach|detach_list.
If client drivers use devm_pm_domain_attach_list() to attach the PM domains,
devm_pm_domain_detach_list() will be invoked implicitly during remove phase.

Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
Link: https://lore.kernel.org/r/1724063350-11993-2-git-send-email-quic_dikshita@quicinc.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/base/power/common.c
include/linux/pm_domain.h