i2c: rk3x: Use subsys_initcall() when CONFIG_ROCKCHIP_THUNDER_BOOT=y

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I1e371710300774696909946b7650c7275374c99e
This commit is contained in:
Ziyuan Xu
2025-06-23 16:04:41 +08:00
committed by Tao Huang
parent 08ccfb458b
commit 1f92ff4692

View File

@@ -2125,11 +2125,7 @@ static int __init rk3x_i2c_driver_init(void)
{
return platform_driver_register(&rk3x_i2c_driver);
}
#ifdef CONFIG_INITCALL_ASYNC
subsys_initcall_sync(rk3x_i2c_driver_init);
#else
subsys_initcall(rk3x_i2c_driver_init);
#endif
static void __exit rk3x_i2c_driver_exit(void)
{