diff options
author | Andrzej Pietrasiewicz <andrzej.p@collabora.com> | 2020-07-03 12:43:52 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-07-07 01:26:06 +0200 |
commit | 7a7d66f26b0ff47e7edbc9df884ad711ed918992 (patch) | |
tree | bafdade0ed6b37baae0b50195a639ca06229543b /drivers/acpi | |
parent | f5e50bf4d3ef0aba4d5414c9ed51fa4a02e2ed12 (diff) |
acpi: thermal: Don't call thermal_zone_device_is_enabled()
thermal_zone_device_update() can now handle disabled thermal zones, so
the check here is not needed.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200703104354.19657-2-andrzej.p@collabora.com
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/thermal.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 29a2b73fe035..12c0ece746f0 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c @@ -499,9 +499,6 @@ static void acpi_thermal_check(void *data) { struct acpi_thermal *tz = data; - if (!thermal_zone_device_is_enabled(tz->thermal_zone)) - return; - thermal_zone_device_update(tz->thermal_zone, THERMAL_EVENT_UNSPECIFIED); } |