diff options
Diffstat (limited to 'drivers/acpi/thermal.c')
-rw-r--r-- | drivers/acpi/thermal.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 6b959976b7a4..e8c143caf0fd 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c | |||
@@ -371,7 +371,7 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag) | |||
371 | /* | 371 | /* |
372 | * Treat freezing temperatures as invalid as well; some | 372 | * Treat freezing temperatures as invalid as well; some |
373 | * BIOSes return really low values and cause reboots at startup. | 373 | * BIOSes return really low values and cause reboots at startup. |
374 | * Below zero (Celcius) values clearly aren't right for sure.. | 374 | * Below zero (Celsius) values clearly aren't right for sure.. |
375 | * ... so lets discard those as invalid. | 375 | * ... so lets discard those as invalid. |
376 | */ | 376 | */ |
377 | if (ACPI_FAILURE(status) || | 377 | if (ACPI_FAILURE(status) || |
@@ -1192,7 +1192,6 @@ static int acpi_thermal_add_fs(struct acpi_device *device) | |||
1192 | acpi_thermal_dir); | 1192 | acpi_thermal_dir); |
1193 | if (!acpi_device_dir(device)) | 1193 | if (!acpi_device_dir(device)) |
1194 | return -ENODEV; | 1194 | return -ENODEV; |
1195 | acpi_device_dir(device)->owner = THIS_MODULE; | ||
1196 | } | 1195 | } |
1197 | 1196 | ||
1198 | /* 'state' [R] */ | 1197 | /* 'state' [R] */ |
@@ -1534,7 +1533,6 @@ static int __init acpi_thermal_init(void) | |||
1534 | acpi_thermal_dir = proc_mkdir(ACPI_THERMAL_CLASS, acpi_root_dir); | 1533 | acpi_thermal_dir = proc_mkdir(ACPI_THERMAL_CLASS, acpi_root_dir); |
1535 | if (!acpi_thermal_dir) | 1534 | if (!acpi_thermal_dir) |
1536 | return -ENODEV; | 1535 | return -ENODEV; |
1537 | acpi_thermal_dir->owner = THIS_MODULE; | ||
1538 | 1536 | ||
1539 | result = acpi_bus_register_driver(&acpi_thermal_driver); | 1537 | result = acpi_bus_register_driver(&acpi_thermal_driver); |
1540 | if (result < 0) { | 1538 | if (result < 0) { |