Skip to content

Commit b8b4832

Browse files
fujitaIngo Molnar
authored andcommitted
x86: remove ifdef CONFIG_CALGARY_IOMMU in pci-dma.c
asm-x86/calgary.h has dummy calgary_iommu_init() and detect_calgary() in !CONFIG_CALGARY_IOMMU case. So we don't need ifdef CONFIG_CALGARY_IOMMU in pci-dma.c. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Muli Ben-Yehuda <muli@il.ibm.com> Cc: Alexis Bruemmer <alexisb@us.ibm.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent ac7ded2 commit b8b4832

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/x86/kernel/pci-dma.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ void __init pci_iommu_alloc(void)
116116
*/
117117
gart_iommu_hole_init();
118118

119-
#ifdef CONFIG_CALGARY_IOMMU
120119
detect_calgary();
121-
#endif
122120

123121
detect_intel_iommu();
124122

@@ -496,9 +494,7 @@ EXPORT_SYMBOL(dma_free_coherent);
496494

497495
static int __init pci_iommu_init(void)
498496
{
499-
#ifdef CONFIG_CALGARY_IOMMU
500497
calgary_iommu_init();
501-
#endif
502498

503499
intel_iommu_init();
504500

0 commit comments

Comments
 (0)