summaryrefslogtreecommitdiff
path: root/drivers/firmware
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2026-02-17 16:56:16 +0100
committerThomas Zimmermann <tzimmermann@suse.de>2026-02-20 14:38:20 +0100
commitb44308c864b86ebcc03d73ae74bb9ac3ce1c5d4b (patch)
treeda47789acfb7d6dd9be7bb38cebb95f873fcdca5 /drivers/firmware
parent73d8aa63b22b1e49f3f025da394bbe339e7a880f (diff)
firmware: google: Init coreboot bus with subsys_initcall()
Using module_init()/device_initcall() is too late to initialize the coreboot bus, as there might already be drivers that depend on it. So far this hasn't been a problem, as coreboot controls all device creation. Initializing the coreboot bus earlier in subsys_initcall() will allow for external coreboot drivers to register themselves with device_initcall(). Prepares coreboot to support additional coreboot drivers from other subsystems. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Acked-by: Tzung-Bi Shih <tzungbi@kernel.org> Acked-by: Julius Werner <jwerner@chromium.org> Link: https://patch.msgid.link/20260217155836.96267-7-tzimmermann@suse.de
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/google/coreboot_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/google/coreboot_table.c b/drivers/firmware/google/coreboot_table.c
index 882db32e51be..26d93781e64a 100644
--- a/drivers/firmware/google/coreboot_table.c
+++ b/drivers/firmware/google/coreboot_table.c
@@ -251,7 +251,7 @@ static void __exit coreboot_table_driver_exit(void)
bus_unregister(&coreboot_bus_type);
}
-module_init(coreboot_table_driver_init);
+subsys_initcall(coreboot_table_driver_init);
module_exit(coreboot_table_driver_exit);
MODULE_AUTHOR("Google, Inc.");