]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: cpu0: OPPs can be populated at runtime
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 11 Jul 2014 14:54:19 +0000 (20:24 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 16 Jul 2014 13:12:52 +0000 (15:12 +0200)
commit8e2fffdb5ea336a9c05377b971c2998781547845
tree1b85c86196b6089907f7e56b7a1220b884b4194d
parentcdfe1103bfc863debb7bac48dc5dcf1cee448cfa
cpufreq: cpu0: OPPs can be populated at runtime

OPPs can be populated statically, via DT, or added at run time with
dev_pm_opp_add().

While this driver handles the first case correctly, it would fail to populate
OPPs added at runtime. Because call to of_init_opp_table() would fail as there
are no OPPs in DT and probe will return early.

To fix this, remove error checking and call dev_pm_opp_init_cpufreq_table()
unconditionally.

Update bindings as well.

Suggested-by: Stephen Boyd <sboyd@codeaurora.org>
Tested-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/devicetree/bindings/cpufreq/cpufreq-cpu0.txt
drivers/cpufreq/cpufreq-cpu0.c