OPP: Allow same OPP table to be used for multiple genpd
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 30 May 2018 09:49:38 +0000 (15:19 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 30 May 2018 10:08:21 +0000 (15:38 +0530)
commit8a352fd8787cefcb19c25ca1390301f874797b9c
tree2fd017804d8aa6b236d56b36efb5883cc825c44d
parent5019acc693d3183a19d4844f6e2d878ea2dd7ddd
OPP: Allow same OPP table to be used for multiple genpd

The OPP binding says:

Property: operating-points-v2

...

This can contain more than one phandle for power domain
providers that provide multiple power domains. That is, one
phandle for each power domain. If only one phandle is available,
then the same OPP table will be used for all power domains
provided by the power domain provider.

But the OPP core isn't allowing the same OPP table to be used for
multiple domains. Update dev_pm_opp_of_add_table_indexed() to allow
that.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Rajendra Nayak <rnayak@codeaurora.org>
drivers/opp/of.c