summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2017-03-31 06:36:55 +0800
committerAnson Huang <Anson.Huang@nxp.com>2017-06-09 22:18:15 +0800
commitc4c69cc05eebfba95e63df541704150c320a5358 (patch)
tree6205223c76c903af2d0932cbdc3d2409957631be /drivers/base
parent85c889ef41fbf326c8750a8e0ba248b07b3350eb (diff)
MLK-14585-1 power: domain: expose generic_pm_domain structure to clients
In some platforms, accessing registers needs to make sure power domain is enabled, such as for clock operations, power domain needs to be enabled first before accessing clock registers, so some clocks need to know its power domain's status, it will need to get power domain structure by phandle, expose the API to support this case. Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/power/domain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index 1ed03090c3c5..2b4abd4214d3 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -1649,7 +1649,7 @@ EXPORT_SYMBOL_GPL(of_genpd_del_provider);
* Returns a valid pointer to struct generic_pm_domain on success or ERR_PTR()
* on failure.
*/
-static struct generic_pm_domain *genpd_get_from_provider(
+struct generic_pm_domain *genpd_get_from_provider(
struct of_phandle_args *genpdspec)
{
struct generic_pm_domain *genpd = ERR_PTR(-ENOENT);
@@ -1672,6 +1672,7 @@ static struct generic_pm_domain *genpd_get_from_provider(
return genpd;
}
+EXPORT_SYMBOL_GPL(genpd_get_from_provider);
/**
* of_genpd_add_device() - Add a device to an I/O PM domain