Detaching a power domain frees the virtual device if any was allocated and may power down the domain if no users remain. We don't do reference counting for users and don't mind power domains remaining enables as the kernel will enable unused power domains on its own anyway. Thus implement dev_pm_domain_detach() as empty stub. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- include/pm_domain.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/pm_domain.h b/include/pm_domain.h index f242a05b4934..118770023150 100644 --- a/include/pm_domain.h +++ b/include/pm_domain.h @@ -174,4 +174,10 @@ static inline struct device *dev_pm_domain_attach_by_name(struct device *dev, return genpd_dev_pm_attach_by_name(dev, name); } +static inline void dev_pm_domain_detach(struct device *dev, bool power_off) +{ + /* Just keep power domain enabled until dev_pm_domain_attach* + * start doing reference counting + */ +} #endif -- 2.39.2