diff options
author | Qinglang Miao <miaoqinglang@huawei.com> | 2020-09-16 14:21:39 +0800 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-10-12 12:08:35 +0200 |
commit | df3e647d68249384a970a76e8642bc5901488424 (patch) | |
tree | a890142e0108909802042dafe862ee252f50d854 /drivers/thermal | |
parent | 585834a5eeb38a9b290786b6d3ee55f22098c602 (diff) |
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
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/thermal_core.c | 1 |
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; |