lkml.org 
[lkml]   [2023]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/6] PM: domains: Export genpd_dev_pm_attach_by_name()
Date
The genpd_dev_pm_attach_by_name() allows a device to be associated with
its PM domain by name.

Export it for use by kernel modules, such as the i.MX8M blk-ctrl drivers:
imx8m-blk-ctrl and imx8mp-blk-ctrl.

Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
---
drivers/base/power/domain.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index 32084e38b73d..6d66b6b14863 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -2908,6 +2908,7 @@ struct device *genpd_dev_pm_attach_by_name(struct device *dev, const char *name)

return genpd_dev_pm_attach_by_id(dev, index);
}
+EXPORT_SYMBOL_GPL(genpd_dev_pm_attach_by_name);

static const struct of_device_id idle_state_match[] = {
{ .compatible = "domain-idle-state", },
--
2.36.0
\
 
 \ /
  Last update: 2023-03-27 00:38    [W:0.137 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site