Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

firmware: imx: scu: change init level to subsys_initcall_sync

Change firmware init level to subsys_initcall_sync to ensure it's
probed before most devices to avoid unnecessary defer probe.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Dong Aisheng and committed by
Shawn Guo
22420dc7 ef2c1c84

+6 -1
+6 -1
drivers/firmware/imx/imx-scu.c
··· 353 353 }, 354 354 .probe = imx_scu_probe, 355 355 }; 356 - builtin_platform_driver(imx_scu_driver); 356 + 357 + static int __init imx_scu_driver_init(void) 358 + { 359 + return platform_driver_register(&imx_scu_driver); 360 + } 361 + subsys_initcall_sync(imx_scu_driver_init); 357 362 358 363 MODULE_AUTHOR("Dong Aisheng <aisheng.dong@nxp.com>"); 359 364 MODULE_DESCRIPTION("IMX SCU firmware protocol driver");