cpufreq: dt: Check OPP count before marking them shared
We need to explicitly mark OPPs as shared, when they are not defined
with OPP-v2 bindings. But this isn't required to be done if we failed to
initialize OPP table.
Reorder code to verify OPP count before marking them shared.
Fixes: 2e02d8723edf ("cpufreq: dt: Add support for operating-points-v2 bindings")
Signed-off-by:
Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 7d5d0c8ba369cbfb68eec6912f35197d82214668)
Signed-off-by:
Alex Shi <alex.shi@linaro.org>
Loading
Please register or sign in to comment