]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86: msi-laptop: add missing sysfs_remove_group()
authorThomas Fourier <fourier.thomas@gmail.com>
Wed, 17 Dec 2025 10:36:13 +0000 (11:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:11:53 +0000 (13:11 +0100)
commit46a5c1fab7b7552cea93d5e07f37d499b5d20bc3
tree1eec3795eeda43b428a500afd87b1d123ba09276
parent17e7386234f740f3e7d5e58a47b5847ea34c3bc2
platform/x86: msi-laptop: add missing sysfs_remove_group()

[ Upstream commit 1461209cf813b6ee6d40f29b96b544587df6d2b1 ]

A sysfs group is created in msi_init() when old_ec_model is enabled, but
never removed. Remove the msipf_old_attribute_group in that case.

Fixes: 03696e51d75a ("msi-laptop: Disable brightness control for new EC")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Link: https://patch.msgid.link/20251217103617.27668-2-fourier.thomas@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/msi-laptop.c