|
@@ -579,10 +579,8 @@ int dev_pm_opp_of_add_table_indexed(struct device *dev, int index)
|
|
*/
|
|
*/
|
|
count = of_count_phandle_with_args(dev->of_node,
|
|
count = of_count_phandle_with_args(dev->of_node,
|
|
"operating-points-v2", NULL);
|
|
"operating-points-v2", NULL);
|
|
- if (count != 1)
|
|
|
|
- return -ENODEV;
|
|
|
|
-
|
|
|
|
- index = 0;
|
|
|
|
|
|
+ if (count == 1)
|
|
|
|
+ index = 0;
|
|
}
|
|
}
|
|
|
|
|
|
opp_table = dev_pm_opp_get_opp_table_indexed(dev, index);
|
|
opp_table = dev_pm_opp_get_opp_table_indexed(dev, index);
|