summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/qoriq-cpufreq.c
diff options
context:
space:
mode:
authorJia Hongtao <hongtao.jia@nxp.com>2016-04-19 11:00:07 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-25 16:07:02 +0200
commit394cb8316b44e86f64c39ee943bc9bc4f813283b (patch)
tree23743b9f6401bdc110e722ce0a5dfc12e323b46a /drivers/cpufreq/qoriq-cpufreq.c
parentcpufreq: qoriq: Remove __exit macro from .exit callback (diff)
downloadlinux-394cb8316b44e86f64c39ee943bc9bc4f813283b.tar.xz
linux-394cb8316b44e86f64c39ee943bc9bc4f813283b.zip
cpufreq: qoriq: Fix cooling device registration issue during suspend
Cooling device is registered by ready callback. It's also invoked while system resuming from sleep (Enabling non-boot cpus). Thus cooling device may be multiple registered. Matchable unregistration is added to exit callback to fix this issue. Signed-off-by: Jia Hongtao <hongtao.jia@nxp.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/qoriq-cpufreq.c')
-rw-r--r--drivers/cpufreq/qoriq-cpufreq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpufreq/qoriq-cpufreq.c b/drivers/cpufreq/qoriq-cpufreq.c
index e029079ee302..53d8c3fb16f6 100644
--- a/drivers/cpufreq/qoriq-cpufreq.c
+++ b/drivers/cpufreq/qoriq-cpufreq.c
@@ -305,6 +305,7 @@ static int qoriq_cpufreq_cpu_exit(struct cpufreq_policy *policy)
{
struct cpu_data *data = policy->driver_data;
+ cpufreq_cooling_unregister(data->cdev);
kfree(data->pclk);
kfree(data->table);
kfree(data);