Skip to content

Commit bd26cd9

Browse files
Vineeth Pillai (Google)willdeacon
authored andcommitted
iommu/vt-d: Remove the CONFIG_X86 wrapping from iommu init hook
iommu init hook is wrapped in CONFI_X86 and is a remnant of dmar.c when it was a common code in "drivers/pci/dmar.c". This was added in commit (9d5ce73 x86: intel-iommu: Convert detect_intel_iommu to use iommu_init hook) Now this is built only for x86. This config wrap could be removed. Signed-off-by: Vineeth Pillai (Google) <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 86731a2 commit bd26cd9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/iommu/intel/dmar.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -935,14 +935,11 @@ void __init detect_intel_iommu(void)
935935
pci_request_acs();
936936
}
937937

938-
#ifdef CONFIG_X86
939938
if (!ret) {
940939
x86_init.iommu.iommu_init = intel_iommu_init;
941940
x86_platform.iommu_shutdown = intel_iommu_shutdown;
942941
}
943942

944-
#endif
945-
946943
if (dmar_tbl) {
947944
acpi_put_table(dmar_tbl);
948945
dmar_tbl = NULL;

0 commit comments

Comments
 (0)