diff options
-rw-r--r-- | arch/x86/kernel/pci-dma.c | 6 | ||||
-rw-r--r-- | include/asm-x86/iommu.h | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c index f581a4b63b43..dd57c5bbe2da 100644 --- a/arch/x86/kernel/pci-dma.c +++ b/arch/x86/kernel/pci-dma.c | |||
@@ -114,9 +114,7 @@ void __init pci_iommu_alloc(void) | |||
114 | * The order of these functions is important for | 114 | * The order of these functions is important for |
115 | * fall-back/fail-over reasons | 115 | * fall-back/fail-over reasons |
116 | */ | 116 | */ |
117 | #ifdef CONFIG_GART_IOMMU | ||
118 | gart_iommu_hole_init(); | 117 | gart_iommu_hole_init(); |
119 | #endif | ||
120 | 118 | ||
121 | #ifdef CONFIG_CALGARY_IOMMU | 119 | #ifdef CONFIG_CALGARY_IOMMU |
122 | detect_calgary(); | 120 | detect_calgary(); |
@@ -184,9 +182,7 @@ static __init int iommu_setup(char *p) | |||
184 | swiotlb = 1; | 182 | swiotlb = 1; |
185 | #endif | 183 | #endif |
186 | 184 | ||
187 | #ifdef CONFIG_GART_IOMMU | ||
188 | gart_parse_options(p); | 185 | gart_parse_options(p); |
189 | #endif | ||
190 | 186 | ||
191 | #ifdef CONFIG_CALGARY_IOMMU | 187 | #ifdef CONFIG_CALGARY_IOMMU |
192 | if (!strncmp(p, "calgary", 7)) | 188 | if (!strncmp(p, "calgary", 7)) |
@@ -508,9 +504,7 @@ static int __init pci_iommu_init(void) | |||
508 | 504 | ||
509 | amd_iommu_init(); | 505 | amd_iommu_init(); |
510 | 506 | ||
511 | #ifdef CONFIG_GART_IOMMU | ||
512 | gart_iommu_init(); | 507 | gart_iommu_init(); |
513 | #endif | ||
514 | 508 | ||
515 | no_iommu_init(); | 509 | no_iommu_init(); |
516 | return 0; | 510 | return 0; |
diff --git a/include/asm-x86/iommu.h b/include/asm-x86/iommu.h index 068c9a40aa5b..d63166fb3ab7 100644 --- a/include/asm-x86/iommu.h +++ b/include/asm-x86/iommu.h | |||
@@ -25,10 +25,18 @@ extern void gart_iommu_hole_init(void); | |||
25 | static inline void early_gart_iommu_check(void) | 25 | static inline void early_gart_iommu_check(void) |
26 | { | 26 | { |
27 | } | 27 | } |
28 | 28 | static inline void gart_iommu_init(void) | |
29 | { | ||
30 | } | ||
29 | static inline void gart_iommu_shutdown(void) | 31 | static inline void gart_iommu_shutdown(void) |
30 | { | 32 | { |
31 | } | 33 | } |
34 | static inline void gart_parse_options(char *options) | ||
35 | { | ||
36 | } | ||
37 | static inline void gart_iommu_hole_init(void) | ||
38 | { | ||
39 | } | ||
32 | #endif | 40 | #endif |
33 | 41 | ||
34 | #endif | 42 | #endif |