mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user