diff options
| -rw-r--r-- | arch/ia64/kernel/pci-dma.c | 6 | ||||
| -rw-r--r-- | drivers/pci/intel-iommu.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/arch/ia64/kernel/pci-dma.c b/arch/ia64/kernel/pci-dma.c index a647f116a155..e4cb443bb988 100644 --- a/arch/ia64/kernel/pci-dma.c +++ b/arch/ia64/kernel/pci-dma.c | |||
| @@ -99,11 +99,6 @@ int iommu_dma_supported(struct device *dev, u64 mask) | |||
| 99 | } | 99 | } |
| 100 | EXPORT_SYMBOL(iommu_dma_supported); | 100 | EXPORT_SYMBOL(iommu_dma_supported); |
| 101 | 101 | ||
| 102 | static int vtd_dma_mapping_error(struct device *dev, dma_addr_t dma_addr) | ||
| 103 | { | ||
| 104 | return 0; | ||
| 105 | } | ||
| 106 | |||
| 107 | void __init pci_iommu_alloc(void) | 102 | void __init pci_iommu_alloc(void) |
| 108 | { | 103 | { |
| 109 | dma_ops = &intel_dma_ops; | 104 | dma_ops = &intel_dma_ops; |
| @@ -113,7 +108,6 @@ void __init pci_iommu_alloc(void) | |||
| 113 | dma_ops->sync_single_for_device = machvec_dma_sync_single; | 108 | dma_ops->sync_single_for_device = machvec_dma_sync_single; |
| 114 | dma_ops->sync_sg_for_device = machvec_dma_sync_sg; | 109 | dma_ops->sync_sg_for_device = machvec_dma_sync_sg; |
| 115 | dma_ops->dma_supported = iommu_dma_supported; | 110 | dma_ops->dma_supported = iommu_dma_supported; |
| 116 | dma_ops->mapping_error = vtd_dma_mapping_error; | ||
| 117 | 111 | ||
| 118 | /* | 112 | /* |
| 119 | * The order of these functions is important for | 113 | * The order of these functions is important for |
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c index c933980bf562..59de56304aa6 100644 --- a/drivers/pci/intel-iommu.c +++ b/drivers/pci/intel-iommu.c | |||
| @@ -2581,6 +2581,11 @@ int intel_map_sg(struct device *hwdev, struct scatterlist *sglist, int nelems, | |||
| 2581 | return nelems; | 2581 | return nelems; |
| 2582 | } | 2582 | } |
| 2583 | 2583 | ||
| 2584 | static int intel_mapping_error(struct device *dev, dma_addr_t dma_addr) | ||
| 2585 | { | ||
| 2586 | return !dma_addr; | ||
| 2587 | } | ||
| 2588 | |||
| 2584 | struct dma_map_ops intel_dma_ops = { | 2589 | struct dma_map_ops intel_dma_ops = { |
| 2585 | .alloc_coherent = intel_alloc_coherent, | 2590 | .alloc_coherent = intel_alloc_coherent, |
| 2586 | .free_coherent = intel_free_coherent, | 2591 | .free_coherent = intel_free_coherent, |
| @@ -2588,6 +2593,7 @@ struct dma_map_ops intel_dma_ops = { | |||
| 2588 | .unmap_sg = intel_unmap_sg, | 2593 | .unmap_sg = intel_unmap_sg, |
| 2589 | .map_page = intel_map_page, | 2594 | .map_page = intel_map_page, |
| 2590 | .unmap_page = intel_unmap_page, | 2595 | .unmap_page = intel_unmap_page, |
| 2596 | .mapping_error = intel_mapping_error, | ||
| 2591 | }; | 2597 | }; |
| 2592 | 2598 | ||
| 2593 | static inline int iommu_domain_cache_init(void) | 2599 | static inline int iommu_domain_cache_init(void) |
