|
@@ -243,7 +243,7 @@ void dev_pm_opp_of_remove_table(struct device *dev)
|
|
|
EXPORT_SYMBOL_GPL(dev_pm_opp_of_remove_table);
|
|
|
|
|
|
/* Returns opp descriptor node for a device, caller must do of_node_put() */
|
|
|
-static struct device_node *_of_get_opp_desc_node(struct device *dev)
|
|
|
+struct device_node *dev_pm_opp_of_get_opp_desc_node(struct device *dev)
|
|
|
{
|
|
|
/*
|
|
|
* There should be only ONE phandle present in "operating-points-v2"
|
|
@@ -252,6 +252,7 @@ static struct device_node *_of_get_opp_desc_node(struct device *dev)
|
|
|
|
|
|
return of_parse_phandle(dev->of_node, "operating-points-v2", 0);
|
|
|
}
|
|
|
+EXPORT_SYMBOL_GPL(dev_pm_opp_of_get_opp_desc_node);
|
|
|
|
|
|
/**
|
|
|
* _opp_add_static_v2() - Allocate static OPPs (As per 'v2' DT bindings)
|
|
@@ -478,7 +479,7 @@ int dev_pm_opp_of_add_table(struct device *dev)
|
|
|
* OPPs have two version of bindings now. The older one is deprecated,
|
|
|
* try for the new binding first.
|
|
|
*/
|
|
|
- opp_np = _of_get_opp_desc_node(dev);
|
|
|
+ opp_np = dev_pm_opp_of_get_opp_desc_node(dev);
|
|
|
if (!opp_np) {
|
|
|
/*
|
|
|
* Try old-deprecated bindings for backward compatibility with
|
|
@@ -570,7 +571,7 @@ int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev,
|
|
|
int cpu, ret = 0;
|
|
|
|
|
|
/* Get OPP descriptor node */
|
|
|
- np = _of_get_opp_desc_node(cpu_dev);
|
|
|
+ np = dev_pm_opp_of_get_opp_desc_node(cpu_dev);
|
|
|
if (!np) {
|
|
|
dev_dbg(cpu_dev, "%s: Couldn't find opp node.\n", __func__);
|
|
|
return -ENOENT;
|
|
@@ -595,7 +596,7 @@ int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev,
|
|
|
}
|
|
|
|
|
|
/* Get OPP descriptor node */
|
|
|
- tmp_np = _of_get_opp_desc_node(tcpu_dev);
|
|
|
+ tmp_np = dev_pm_opp_of_get_opp_desc_node(tcpu_dev);
|
|
|
if (!tmp_np) {
|
|
|
dev_err(tcpu_dev, "%s: Couldn't find opp node.\n",
|
|
|
__func__);
|