diff options
Diffstat (limited to 'drivers/acpi/thermal.c')
-rw-r--r-- | drivers/acpi/thermal.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index da079d4e0baa..8470771e5eae 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c | |||
@@ -288,7 +288,7 @@ do { \ | |||
288 | if (flags != ACPI_TRIPS_INIT) \ | 288 | if (flags != ACPI_TRIPS_INIT) \ |
289 | ACPI_EXCEPTION((AE_INFO, AE_ERROR, \ | 289 | ACPI_EXCEPTION((AE_INFO, AE_ERROR, \ |
290 | "ACPI thermal trip point %s changed\n" \ | 290 | "ACPI thermal trip point %s changed\n" \ |
291 | "Please send acpidump to linux-acpi@vger.kernel.org\n", str)); \ | 291 | "Please send acpidump to linux-acpi@vger.kernel.org", str)); \ |
292 | } while (0) | 292 | } while (0) |
293 | 293 | ||
294 | static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag) | 294 | static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag) |
@@ -531,6 +531,10 @@ static void acpi_thermal_check(void *data) | |||
531 | { | 531 | { |
532 | struct acpi_thermal *tz = data; | 532 | struct acpi_thermal *tz = data; |
533 | 533 | ||
534 | if (!tz->tz_enabled) { | ||
535 | pr_warn("thermal zone is disabled \n"); | ||
536 | return; | ||
537 | } | ||
534 | thermal_zone_device_update(tz->thermal_zone); | 538 | thermal_zone_device_update(tz->thermal_zone); |
535 | } | 539 | } |
536 | 540 | ||