x86: intel-iommu: Convert detect_intel_iommu to use iommu_init hook
[safe/jmp/linux-2.6] / drivers / pci / dmar.c
index 22b02c6..bce9cd7 100644 (file)
@@ -617,6 +617,10 @@ void __init detect_intel_iommu(void)
                    !dmar_disabled)
                        iommu_detected = 1;
 #endif
+#ifdef CONFIG_X86
+               if (ret)
+                       x86_init.iommu.iommu_init = intel_iommu_init;
+#endif
        }
        early_acpi_os_unmap_memory(dmar_tbl, dmar_tbl_size);
        dmar_tbl = NULL;