cpufreq: imx6q: fix speed grading regression on i.MX6 QuadPlus
authorLucas Stach <l.stach@pengutronix.de>
Mon, 11 Dec 2017 13:19:00 +0000 (14:19 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 18 Dec 2017 11:06:37 +0000 (12:06 +0100)
commitccc153a6de1f7741b5ef7c996f9be133772b2092
tree3c9e7c72fd78cbf9d3cb980b5743a5df238cfad2
parent1291a0d5049dbc06baaaf66a9ff3f53db493b19b
cpufreq: imx6q: fix speed grading regression on i.MX6 QuadPlus

The commit moving the speed grading check to the cpufreq driver introduced
some additional checks, so the OPP disable is only attempted on SoCs where
those OPPs are present. The compatible checks are missing the QuadPlus
compatible, so invalid OPPs are not correctly disabled there.

Move both checks to a single condition, so we don't need to sprinkle even
more calls to of_machine_is_compatible().

Fixes: 2b3d58a3adca (cpufreq: imx6q: Move speed grading check to cpufreq driver)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/imx6q-cpufreq.c