iommu: Call iommu_subsys_init() early when CONFIG_INITCALL_ASYNC=y

rk_iommu_init() depends on iommu_subsys_init().
But rk_iommu_init() and iommu_subsys_init() are both in the same
subsys_initcall level.

Fix this by moving iommu_subsys_init() to the postcore_initcall_sync level.

Change-Id: Ie7a7ecf7ffa7c3876b745de657b65b84e65ff8c9
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2025-04-15 15:35:38 +08:00
parent 26e7a91897
commit b683085198

View File

@@ -187,7 +187,11 @@ static int __init iommu_subsys_init(void)
return 0;
}
#ifdef CONFIG_INITCALL_ASYNC
postcore_initcall_sync(iommu_subsys_init);
#else
subsys_initcall(iommu_subsys_init);
#endif
static int remove_iommu_group(struct device *dev, void *data)
{