]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86: Fix initialization order for firmware_attributes_class
authorTorsten Hilbrich <torsten.hilbrich@secunet.com>
Fri, 11 Jul 2025 10:32:54 +0000 (12:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Aug 2025 08:51:24 +0000 (09:51 +0100)
commit227c7587c0ce339a586d869b8ca85722cbd78c11
tree6ce039138e828aac33db116b64a5278cd80d40e1
parent9a5ad614da20a19ba0747d009b9a09d0cc8450f8
platform/x86: Fix initialization order for firmware_attributes_class

[ Upstream commit 2bfe3ae1aa45f8b61cb0dc462114fd0c9636ad32 ]

The think-lmi driver uses the firwmare_attributes_class. But this class
is registered after think-lmi, causing the "think-lmi" directory in
"/sys/class/firmware-attributes" to be missing when the driver is
compiled as builtin.

Fixes: 55922403807a ("platform/x86: think-lmi: Directly use firmware_attributes_class")
Signed-off-by: Torsten Hilbrich <torsten.hilbrich@secunet.com>
Link: https://lore.kernel.org/r/7dce5f7f-c348-4350-ac53-d14a8e1e8034@secunet.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/Makefile