i2c: rk3x: initcall early when CONFIG_ROCKCHIP_THUNDER_BOOT=y && !CONFIG_INITCALL_ASYNC

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I496f251febc01c49f2703c425ea6563db3439203
This commit is contained in:
Ziyuan Xu
2022-06-15 22:57:33 +08:00
committed by Tao Huang
parent aabfa89452
commit f72f13b4ce

View File

@@ -1597,7 +1597,11 @@ 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)
{