Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f04d5e01 authored by Roel Kluin's avatar Roel Kluin Committed by Len Brown
Browse files

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: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarHenrique de Moraes Holschuh <ibm-acpi@hmh.eng.br>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 724e6d3f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: