diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2022-08-12 15:07:43 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2022-08-17 14:09:39 +0200 |
commit | 2f9d142c93c293b2526d63e4e75716945edf0cd2 (patch) | |
tree | 1cbff9710cbf9c2c5e34def66c1b81fc3eb13c2d /sound | |
parent | a930da9bf583b2add01fb0e086913664dadaffd0 (diff) | |
download | linux-2f9d142c93c293b2526d63e4e75716945edf0cd2.tar.bz2 |
thermal/core: Fix lockdep_assert() warning
The function thermal_zone_device_is_enabled() must be called with the
thermal zone lock held. In the resume path, it is called without.
As the thermal_zone_device_is_enabled() is also checked in
thermal_zone_device_update(), do the check in resume() function is
pointless, except for saving an extra initialization which does not
hurt if it is done in all the cases.
Fixes: ca48ad71717dd ("thermal/core: Move the mutex inside the thermal_zone_device_update() function")
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions