===================================================================
@@ -142,6 +142,11 @@ struct int34x_thermal_zone *int340x_ther
goto err_trips_alloc;
}
+ for (i = 0; i < int34x_zone->aux_trip_nr; i++) {
+ int34x_zone->trips[i].type = THERMAL_TRIP_PASSIVE;
+ int34x_zone->trips[i].temperature = THERMAL_TEMP_INVALID;
+ }
+
trip_cnt = int340x_thermal_read_trips(int34x_zone);
status = acpi_evaluate_integer(adev->handle, "GTSH", NULL, &hyst);
@@ -153,11 +158,6 @@ struct int34x_thermal_zone *int340x_ther
for (i = 0; i < trip_cnt; ++i)
int34x_zone->trips[i].hysteresis = hyst;
- for (i = 0; i < int34x_zone->aux_trip_nr; i++) {
- int34x_zone->trips[i].type = THERMAL_TRIP_PASSIVE;
- int34x_zone->trips[i].temperature = THERMAL_TEMP_INVALID;
- }
-
int34x_zone->lpat_table = acpi_lpat_get_conversion_table(adev->handle);
int34x_zone->zone = thermal_zone_device_register_with_trips(