]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 22 Dec 2025 14:17:49 +0000 (16:17 +0200)
commit1461209cf813b6ee6d40f29b96b544587df6d2b1
treef7788fcce9fee2f7dace4294ebe136604d293106
parent05126063605f26f9228c69b1ff232ac6e78f72ab
platform/x86: msi-laptop: add missing sysfs_remove_group()

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>
drivers/platform/x86/msi-laptop.c