Commit be8621a1 authored by Andy Grover's avatar Andy Grover

ACPI: Initialize thermal driver's timer before it is used (Knut Neumann)

parent ceb7a4ee
......@@ -1275,6 +1275,8 @@ acpi_thermal_add (
if (result)
return_VALUE(result);
init_timer(&tz->timer);
acpi_thermal_check(tz);
status = acpi_install_notify_handler(tz->handle,
......@@ -1286,8 +1288,6 @@ acpi_thermal_add (
goto end;
}
init_timer(&tz->timer);
printk(KERN_INFO PREFIX "%s [%s] (%ld C)\n",
acpi_device_name(device), acpi_device_bid(device),
KELVIN_TO_CELSIUS(tz->temperature));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment