From: Thomas Zimmermann Date: Tue, 17 Feb 2026 15:56:16 +0000 (+0100) Subject: firmware: google: Init coreboot bus with subsys_initcall() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b44308c864b86ebcc03d73ae74bb9ac3ce1c5d4b;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Javier Martinez Canillas Acked-by: Tzung-Bi Shih Acked-by: Julius Werner Link: https://patch.msgid.link/20260217155836.96267-7-tzimmermann@suse.de --- diff --git a/drivers/firmware/google/coreboot_table.c b/drivers/firmware/google/coreboot_table.c index 882db32e51be9..26d93781e64a1 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.");