Skip to content

Commit 22420dc

Browse files
Dong AishengShawn Guo
authored andcommitted
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 <[email protected]> Signed-off-by: Peng Fan <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent ef2c1c8 commit 22420dc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/firmware/imx/imx-scu.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,12 @@ static struct platform_driver imx_scu_driver = {
353353
},
354354
.probe = imx_scu_probe,
355355
};
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);
357362

358363
MODULE_AUTHOR("Dong Aisheng <[email protected]>");
359364
MODULE_DESCRIPTION("IMX SCU firmware protocol driver");

0 commit comments

Comments
 (0)