From c4c69cc05eebfba95e63df541704150c320a5358 Mon Sep 17 00:00:00 2001 From: Anson Huang Date: Fri, 31 Mar 2017 06:36:55 +0800 Subject: 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 --- drivers/base/power/domain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/base') 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 -- cgit v1.2.3