linux-yocto/drivers/platform
Kurt Borja 4b91b77af2 platform/x86: think-lmi: Fix sysfs group cleanup
commit 4f30f946f2 upstream.

Many error paths in tlmi_sysfs_init() lead to sysfs groups being removed
when they were not even created.

Fix this by letting the kobject core manage these groups through their
kobj_type's defult_groups.

Fixes: a40cd7ef22 ("platform/x86: think-lmi: Add WMI interface support on Lenovo platforms")
Cc: stable@vger.kernel.org
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Kurt Borja <kuurtb@gmail.com>
Link: https://lore.kernel.org/r/20250630-lmi-fix-v3-3-ce4f81c9c481@gmail.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-10 16:03:20 +02:00
..
chrome platform/chrome: cros_ec_typec: fix missing fwnode reference decrement 2024-12-09 10:32:48 +01:00
goldfish
loongarch platform/loongarch: laptop: Add backlight power control support 2025-06-27 11:09:03 +01:00
mellanox platform/mellanox: mlxreg-lc: Fix logic error in power state check 2025-07-10 16:03:10 +02:00
mips platform: mips: cpu_hwmon: Disable driver on unsupported hardware 2024-08-03 08:54:30 +02:00
olpc
surface platform/surface: aggregator_registry: Add support for Surface Laptop Go 3 2024-09-18 19:24:06 +02:00
x86 platform/x86: think-lmi: Fix sysfs group cleanup 2025-07-10 16:03:20 +02:00
Kconfig
Makefile