Skip to content
Commit 51a45209 authored by Stephan Gerhold's avatar Stephan Gerhold Committed by Greg Kroah-Hartman
Browse files

cpufreq: qcom-nvmem: Simplify driver data allocation

[ Upstream commit 2a5d46c3

 ]

Simplify the allocation and cleanup of driver data by using devm
together with a flexible array. Prepare for adding additional per-CPU
data by defining a struct qcom_cpufreq_drv_cpu instead of storing the
opp_tokens directly.

Signed-off-by: default avatarStephan Gerhold <stephan.gerhold@kernkonzept.com>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Stable-dep-of: d01c84b9

 ("cpufreq: qcom-nvmem: fix memory leaks in probe error paths")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent df736330
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment