iommu/arm-smmu: fix compilation issue when !CONFIG_ARM_AMBA
If !CONFIG_ARM_AMBA, we shouldn't try to register ourselves with the amba_bustype. Signed-off-by: Will Deacon <will.deacon@arm.com>
This commit is contained in:
parent
57ca90f680
commit
d123cf82d3
1 changed files with 2 additions and 0 deletions
|
@ -2004,8 +2004,10 @@ static int __init arm_smmu_init(void)
|
||||||
if (!iommu_present(&platform_bus_type))
|
if (!iommu_present(&platform_bus_type))
|
||||||
bus_set_iommu(&platform_bus_type, &arm_smmu_ops);
|
bus_set_iommu(&platform_bus_type, &arm_smmu_ops);
|
||||||
|
|
||||||
|
#ifdef CONFIG_ARM_AMBA
|
||||||
if (!iommu_present(&amba_bustype))
|
if (!iommu_present(&amba_bustype))
|
||||||
bus_set_iommu(&amba_bustype, &arm_smmu_ops);
|
bus_set_iommu(&amba_bustype, &arm_smmu_ops);
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue