Message ID | 1471274620-20754-12-git-send-email-lorenzo.pieralisi@arm.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index 91a7600..75b78f9 100644 --- a/drivers/iommu/arm-smmu-v3.c +++ b/drivers/iommu/arm-smmu-v3.c @@ -2689,11 +2689,16 @@ static int __init arm_smmu_init(void) if (registered) return 0; - np = of_find_matching_node(NULL, arm_smmu_of_match); - if (!np) - return 0; + if (acpi_disabled) { + np = of_find_matching_node(NULL, arm_smmu_of_match); + if (!np) + return 0; - of_node_put(np); + of_node_put(np); + } else { + if (!iort_node_match(ACPI_IORT_NODE_SMMU_V3)) + return 0; + } ret = platform_driver_register(&arm_smmu_driver); if (ret)