Message ID | 1469013815-24380-11-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 15e74da..1a4e9ce 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) struct device_node *np; int ret; - 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)