diff options
author | Dong Aisheng <aisheng.dong@nxp.com> | 2023-08-07 15:14:25 +0300 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2023-08-11 17:13:40 +0300 |
commit | 22420dc71e8d735799cdadf106a420b3ce25aca3 (patch) | |
tree | 80f57285e884b7210a9db5a08863cce35af770b9 | |
parent | ef2c1c84bcb98b66565facbba8dd32ce797b97eb (diff) | |
download | linux-22420dc71e8d735799cdadf106a420b3ce25aca3.tar.xz |
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>
-rw-r--r-- | drivers/firmware/imx/imx-scu.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/firmware/imx/imx-scu.c b/drivers/firmware/imx/imx-scu.c index 47db49911e7b..2d24359420d8 100644 --- a/drivers/firmware/imx/imx-scu.c +++ b/drivers/firmware/imx/imx-scu.c @@ -353,7 +353,12 @@ static struct platform_driver imx_scu_driver = { }, .probe = imx_scu_probe, }; -builtin_platform_driver(imx_scu_driver); + +static int __init imx_scu_driver_init(void) +{ + return platform_driver_register(&imx_scu_driver); +} +subsys_initcall_sync(imx_scu_driver_init); MODULE_AUTHOR("Dong Aisheng <aisheng.dong@nxp.com>"); MODULE_DESCRIPTION("IMX SCU firmware protocol driver"); |