|
| 1 | +From 0fb8478fb0eaa6fd039b50aee0b53e80f5091a04 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Torsten Hilbrich < [email protected]> |
| 3 | +Date: Fri, 11 Jul 2025 12:32:54 +0200 |
| 4 | +Subject: [PATCH] platform/x86: Fix initialization order for |
| 5 | + firmware_attributes_class |
| 6 | +MIME-Version: 1.0 |
| 7 | +Content-Type: text/plain; charset=UTF-8 |
| 8 | +Content-Transfer-Encoding: 8bit |
| 9 | + |
| 10 | +[ Upstream commit 2bfe3ae1aa45f8b61cb0dc462114fd0c9636ad32 ] |
| 11 | + |
| 12 | +The think-lmi driver uses the firwmare_attributes_class. But this class |
| 13 | +is registered after think-lmi, causing the "think-lmi" directory in |
| 14 | +"/sys/class/firmware-attributes" to be missing when the driver is |
| 15 | +compiled as builtin. |
| 16 | + |
| 17 | +Fixes: 55922403807a ("platform/x86: think-lmi: Directly use firmware_attributes_class") |
| 18 | +Signed-off-by: Torsten Hilbrich < [email protected]> |
| 19 | +Link: https://lore.kernel.org/r/ [email protected] |
| 20 | +Reviewed-by: Ilpo Järvinen < [email protected]> |
| 21 | +Signed-off-by: Ilpo Järvinen < [email protected]> |
| 22 | +Signed-off-by: Sasha Levin < [email protected]> |
| 23 | +--- |
| 24 | + drivers/platform/x86/Makefile | 3 ++- |
| 25 | + 1 file changed, 2 insertions(+), 1 deletion(-) |
| 26 | + |
| 27 | +diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile |
| 28 | +index e1b142947067..4631c7bb22cd 100644 |
| 29 | +--- a/drivers/platform/x86/Makefile |
| 30 | ++++ b/drivers/platform/x86/Makefile |
| 31 | +@@ -58,6 +58,8 @@ obj-$(CONFIG_X86_PLATFORM_DRIVERS_HP) += hp/ |
| 32 | + # Hewlett Packard Enterprise |
| 33 | + obj-$(CONFIG_UV_SYSFS) += uv_sysfs.o |
| 34 | + |
| 35 | ++obj-$(CONFIG_FW_ATTR_CLASS) += firmware_attributes_class.o |
| 36 | ++ |
| 37 | + # IBM Thinkpad and Lenovo |
| 38 | + obj-$(CONFIG_IBM_RTL) += ibm_rtl.o |
| 39 | + obj-$(CONFIG_IDEAPAD_LAPTOP) += ideapad-laptop.o |
| 40 | +@@ -120,7 +122,6 @@ obj-$(CONFIG_SYSTEM76_ACPI) += system76_acpi.o |
| 41 | + obj-$(CONFIG_TOPSTAR_LAPTOP) += topstar-laptop.o |
| 42 | + |
| 43 | + # Platform drivers |
| 44 | +-obj-$(CONFIG_FW_ATTR_CLASS) += firmware_attributes_class.o |
| 45 | + obj-$(CONFIG_SERIAL_MULTI_INSTANTIATE) += serial-multi-instantiate.o |
| 46 | + obj-$(CONFIG_MLX_PLATFORM) += mlx-platform.o |
| 47 | + obj-$(CONFIG_TOUCHSCREEN_DMI) += touchscreen_dmi.o |
| 48 | +-- |
| 49 | +2.47.2 |
| 50 | + |
0 commit comments