summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/cpu_cooling.c
diff options
context:
space:
mode:
authorViresh Kumar2014-12-04 05:11:51 +0100
committerEduardo Valentin2014-12-08 17:08:55 +0100
commit92e615ec82c0314fb480eeb19396f4ac15bf97ef (patch)
tree530a0c7d677ae18962a9f832eb18a14a920eec76 /drivers/thermal/cpu_cooling.c
parentthermal: cpu_cooling: Pass variable instead of its type to sizeof() (diff)
downloadkernel-qcow2-linux-92e615ec82c0314fb480eeb19396f4ac15bf97ef.tar.gz
kernel-qcow2-linux-92e615ec82c0314fb480eeb19396f4ac15bf97ef.tar.xz
kernel-qcow2-linux-92e615ec82c0314fb480eeb19396f4ac15bf97ef.zip
thermal: cpu_cooling: no need to set cpufreq_state to zero
Its already zero, we allocated cpufreq_dev with kzalloc. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/cpu_cooling.c')
-rw-r--r--drivers/thermal/cpu_cooling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index 537856127f78..30e2ecbb75a7 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -499,7 +499,7 @@ __cpufreq_cooling_register(struct device_node *np,
return cool_dev;
}
cpufreq_dev->cool_dev = cool_dev;
- cpufreq_dev->cpufreq_state = 0;
+
mutex_lock(&cooling_cpufreq_lock);
/* Register the notifier for first cpufreq cooling device */