projects/linux·commit f04d5e01

thinkpad-acpi: wrong thermal attribute_group removed in thermal_exit()

f04d5e01 · Roel Kluin <[email protected]> · 2010-02-02 14:37:58 -08:00

sysfs_remove_group() removed the wrong attribute_group for
thermal_read_mode TPEC_8, ACPI_TMP07 and ACPI_UPDT

Signed-off-by: Roel Kluin <[email protected]>
Acked-by: Henrique de Moraes Holschuh <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Len Brown <[email protected]>
Commit
f04d5e012d73ea441bd39804ace39fd6d1ce5611
Parents
724e6d3f

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/platform/x86/thinkpad_acpi.cmodified+1−1View file

drivers/platform/x86/thinkpad_acpi.c

View file
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index e67e4fe..eb603f1 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -5771,7 +5771,7 @@ static void thermal_exit(void)
case TPACPI_THERMAL_ACPI_TMP07:
case TPACPI_THERMAL_ACPI_UPDT:
sysfs_remove_group(&tpacpi_sensors_pdev->dev.kobj,
- &thermal_temp_input16_group);
+ &thermal_temp_input8_group);
break;
case TPACPI_THERMAL_NONE:
default: