Commit 3657f729 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Viresh Kumar
Browse files

cpufreq: brcmstb-avs-cpufreq: Fix resource leaks in ->remove()



If 'cpufreq_unregister_driver()' fails, just WARN and continue, so that
other resources are freed.

Fixes: de322e08 ("cpufreq: brcmstb-avs-cpufreq: AVS CPUfreq driver for Broadcom STB SoCs")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
[ Viresh: Updated Subject ]
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 05f45628
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -754,8 +754,7 @@ static int brcm_avs_cpufreq_remove(struct platform_device *pdev)
	int ret;

	ret = cpufreq_unregister_driver(&brcm_avs_driver);
	if (ret)
		return ret;
	WARN_ON(ret);

	brcm_avs_prepare_uninit(pdev);