diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-01-17 15:26:35 +0100 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2021-01-18 07:53:28 +0100 |
commit | 05f456286fd489558c72a4711d22a5612c965685 (patch) | |
tree | a071ba9be838289a8c4718b21334a4657411f688 /drivers/cpufreq/longrun.c | |
parent | cpufreq: qcom-hw: enable boost support (diff) | |
download | linux-05f456286fd489558c72a4711d22a5612c965685.tar.xz linux-05f456286fd489558c72a4711d22a5612c965685.zip |
cpufreq: brcmstb-avs-cpufreq: Free resources in error path
If 'cpufreq_register_driver()' fails, we must release the resources
allocated in 'brcm_avs_prepare_init()' as already done in the remove
function.
To do that, introduce a new function 'brcm_avs_prepare_uninit()' in order
to avoid code duplication. This also makes the code more readable (IMHO).
Fixes: de322e085995 ("cpufreq: brcmstb-avs-cpufreq: AVS CPUfreq driver for Broadcom STB SoCs")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
[ Viresh: Updated Subject ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq/longrun.c')
0 files changed, 0 insertions, 0 deletions