summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cppc_cpufreq.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2019-02-20 12:11:18 +0100
committerViresh Kumar <viresh.kumar@linaro.org>2019-02-28 05:08:22 +0100
commit0334906c06967142c8805fbe88acf787f65d3d26 (patch)
tree5c04a823585c29f8edb8bacfe905c9fa0afcfb57 /drivers/cpufreq/cppc_cpufreq.c
parentcpufreq: ap806: add missing of_node_put after of_device_is_available (diff)
downloadlinux-0334906c06967142c8805fbe88acf787f65d3d26.tar.xz
linux-0334906c06967142c8805fbe88acf787f65d3d26.zip
cpufreq: kryo: Release OPP tables on module removal
Commit 5ad7346b4ae2 ("cpufreq: kryo: Add module remove and exit") made it possible to build the kryo cpufreq driver as a module, but it failed to release all the resources, i.e. OPP tables, when the module is unloaded. This patch fixes it by releasing the OPP tables, by calling dev_pm_opp_put_supported_hw() for them, from the qcom_cpufreq_kryo_remove() routine. The array of pointers to the OPP tables is also allocated dynamically now in qcom_cpufreq_kryo_probe(), as the pointers will be required while releasing the resources. Compile tested only. Cc: 4.18+ <stable@vger.kernel.org> # v4.18+ Fixes: 5ad7346b4ae2 ("cpufreq: kryo: Add module remove and exit") Reviewed-by: Georgi Djakov <georgi.djakov@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq/cppc_cpufreq.c')
0 files changed, 0 insertions, 0 deletions