diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-12-04 09:41:51 +0530 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2014-12-08 12:08:55 -0400 |
commit | 92e615ec82c0314fb480eeb19396f4ac15bf97ef (patch) | |
tree | 530a0c7d677ae18962a9f832eb18a14a920eec76 | |
parent | 98d522f056568007557867d53833770dee9d8fe8 (diff) |
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>
-rw-r--r-- | drivers/thermal/cpu_cooling.c | 2 |
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 */ |