diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-07-10 21:23:44 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-11 05:00:55 -0400 |
commit | b8b48326f312026af12799917383c54c25d05482 (patch) | |
tree | d995828f8b5e8487ba304ccb672e18f6ff160f2a | |
parent | ac7ded2adb2e43152fe7385ddd53bf45f5c92285 (diff) |
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>
-rw-r--r-- | arch/x86/kernel/pci-dma.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c index dd57c5bbe2da..f16cbbe424a1 100644 --- a/arch/x86/kernel/pci-dma.c +++ b/arch/x86/kernel/pci-dma.c | |||
@@ -116,9 +116,7 @@ void __init pci_iommu_alloc(void) | |||
116 | */ | 116 | */ |
117 | gart_iommu_hole_init(); | 117 | gart_iommu_hole_init(); |
118 | 118 | ||
119 | #ifdef CONFIG_CALGARY_IOMMU | ||
120 | detect_calgary(); | 119 | detect_calgary(); |
121 | #endif | ||
122 | 120 | ||
123 | detect_intel_iommu(); | 121 | detect_intel_iommu(); |
124 | 122 | ||
@@ -496,9 +494,7 @@ EXPORT_SYMBOL(dma_free_coherent); | |||
496 | 494 | ||
497 | static int __init pci_iommu_init(void) | 495 | static int __init pci_iommu_init(void) |
498 | { | 496 | { |
499 | #ifdef CONFIG_CALGARY_IOMMU | ||
500 | calgary_iommu_init(); | 497 | calgary_iommu_init(); |
501 | #endif | ||
502 | 498 | ||
503 | intel_iommu_init(); | 499 | intel_iommu_init(); |
504 | 500 | ||