summaryrefslogtreecommitdiffstats
path: root/include/pm_domain.h
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2024-01-19 17:26:01 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-01-22 11:12:02 +0100
commit7d04ad5ea514b4c86a55375188b4d698b4e1ab3a (patch)
treee21e4f3f792776a2dbd0060c4bd499cc1f968c2b /include/pm_domain.h
parenta0d8f74b6dc375038c7d77988c3f685b7cebc678 (diff)
downloadbarebox-7d04ad5ea514b4c86a55375188b4d698b4e1ab3a.tar.gz
barebox-7d04ad5ea514b4c86a55375188b4d698b4e1ab3a.tar.xz
pmdomain: add stub definition for dev_pm_domain_detach
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@pengutronix.de> Link: https://lore.barebox.org/20240119162610.1014870-11-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/pm_domain.h')
-rw-r--r--include/pm_domain.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/pm_domain.h b/include/pm_domain.h
index f242a05b49..1187700231 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