cpufreq: imx-cpufreq-dt: Add "cpu-supply" property check
authorAnson Huang <Anson.Huang@nxp.com>
Mon, 17 Feb 2020 09:42:55 +0000 (17:42 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 17 Feb 2020 10:45:31 +0000 (16:15 +0530)
commita30f8a91f3c25ad7df897bf7877bad410ad19f79
tree329849a3b202969cb235981975e964cb50c12473
parent0ea4fb29c68950fbeea4e507e3c59ea35bb98ffd
cpufreq: imx-cpufreq-dt: Add "cpu-supply" property check

The cpufreq-dt driver allows cpufreq driver enabled without valid
regulator assigned, however, all i.MX platforms using cpufreq-dt
driver now require valid regulator, add "cpu-supply" property check
to avoid i.MX platforms' cpufreq enabled without valid regulator
and lead to system unstable.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/imx-cpufreq-dt.c