From: Roel Kluin Date: Tue, 2 Feb 2010 22:37:58 +0000 (-0800) Subject: thinkpad-acpi: wrong thermal attribute_group removed in thermal_exit() X-Git-Tag: v2.6.33~32^2^8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f04d5e012d73ea441bd39804ace39fd6d1ce5611;p=platform%2Fupstream%2Fkernel-adaptation-pc.git thinkpad-acpi: wrong thermal attribute_group removed in thermal_exit() sysfs_remove_group() removed the wrong attribute_group for thermal_read_mode TPEC_8, ACPI_TMP07 and ACPI_UPDT Signed-off-by: Roel Kluin Acked-by: Henrique de Moraes Holschuh Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- 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: