summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/cpufreq-dt-platdev.c
diff options
context:
space:
mode:
authorKonrad Dybcio <konrad.dybcio@linaro.org>2022-12-20 16:39:10 +0300
committerViresh Kumar <viresh.kumar@linaro.org>2022-12-27 05:57:14 +0300
commit1a6a8b0080b09bf14a7d45abfe8020bd63306c17 (patch)
tree0053b448c17733ec43e534ffb900153d484c4b86 /drivers/cpufreq/cpufreq-dt-platdev.c
parentf5f94b9c8b805d87ff185caf9779c3a4d07819e3 (diff)
downloadlinux-1a6a8b0080b09bf14a7d45abfe8020bd63306c17.tar.xz
cpufreq: qcom-hw: Fix reading "reg" with address/size-cells != 2
Commit 054a3ef683a1 ("cpufreq: qcom-hw: Allocate qcom_cpufreq_data during probe") assumed that every reg variable is 4*u32 wide (as most new qcom SoCs set #address- and #size-cells to <2>. That is not the case for all of them though. Check the cells values dynamically to ensure the proper region of the DTB is being read. Fixes: 054a3ef683a1 ("cpufreq: qcom-hw: Allocate qcom_cpufreq_data during probe") Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq/cpufreq-dt-platdev.c')
0 files changed, 0 insertions, 0 deletions