summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQinglang Miao <miaoqinglang@huawei.com>2020-09-16 08:21:39 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-10-12 12:08:35 +0200
commitdf3e647d68249384a970a76e8642bc5901488424 (patch)
treea890142e0108909802042dafe862ee252f50d854
parentthermal/idle_inject: Fix comment of idle_duration_us and name of latency_ns (diff)
downloadlinux-df3e647d68249384a970a76e8642bc5901488424.tar.xz
linux-df3e647d68249384a970a76e8642bc5901488424.zip
thermal: core: remove unnecessary mutex_init()
The mutex poweroff_lock is initialized statically. It is unnecessary to initialize by mutex_init(). Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20200916062139.191233-1-miaoqinglang@huawei.com
-rw-r--r--drivers/thermal/thermal_core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index a6616e530a84..49ae4a61cbe6 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -1652,7 +1652,6 @@ static int __init thermal_init(void)
if (result)
goto error;
- mutex_init(&poweroff_lock);
result = thermal_register_governors();
if (result)
goto error;