static int __init pci_iommu_init(void) { if (iommu_detected) intel_iommu_init(); return 0; }
static int __init pci_iommu_init(void) { #ifdef CONFIG_CALGARY_IOMMU calgary_iommu_init(); #endif #ifdef CONFIG_DMAR intel_iommu_init(); #endif #ifdef CONFIG_AMD_IOMMU amd_iommu_init(); #endif #ifdef CONFIG_IOMMU gart_iommu_init(); #endif no_iommu_init(); return 0; }