Skip to contentSkip to conversation

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

PATCH In review Roel Kluin 2 participants 2 messages Jan 19, 2010 – Jan 21, 2010 x86 platform drivers

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 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

---
Was this maybe intended? otherwise in case TPACPI_THERMAL_TPEC_16:
the same code is executed. Please review.

drivers/platform/x86/thinkpad_acpi.c +1 -1
index e67e4fe..eb603f1 100644
@@ -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:
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Roel Kluin

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

I will queue it.

Signature · 4 lines
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh