]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: dt: Check OPP count before marking them shared
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 2 Sep 2015 09:06:48 +0000 (14:36 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Sep 2015 00:46:09 +0000 (02:46 +0200)
commit88440b14589862c9b3c37c75a6c909c875505ac1
tree85b24b4c9551e5f700309608e53e90fabd46686e
parent84c9b680822998e2ba6b4d8b7df6a7139b7c616f
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: ff0ec9defa4b ("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>
drivers/cpufreq/cpufreq-dt.c