]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: brcmstb: consolidate initcall functions
authorJustin Chen <justin.chen@broadcom.com>
Wed, 25 Mar 2026 17:46:19 +0000 (10:46 -0700)
committerFlorian Fainelli <florian.fainelli@broadcom.com>
Wed, 6 May 2026 19:35:53 +0000 (12:35 -0700)
commit12c8e4fe4acd19aa4f85204d07529aef205f967b
tree29fd1c1c99619c1d6b2c374aa59716a14a972e80
parent254f49634ee16a731174d2ae34bc50bd5f45e731
soc: brcmstb: consolidate initcall functions

Merge the separate early_initcall and arch_initcall functions into a
single early_initcall. This is possible thanks to commit 6e12db376b60
("base: soc: Allow early registration of a single SoC device"), which
allows soc_device_register() to be called during early_initcall by
deferring the actual registration until the soc_bus is ready.

Replace static family_id/product_id variables with a dynamically
allocated brcmstb_soc_info structure.

Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://lore.kernel.org/r/20260325174619.3761964-1-justin.chen@broadcom.com
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
drivers/soc/bcm/brcmstb/common.c