diff options
Diffstat (limited to 'drivers/pci/intel-iommu.c')
-rw-r--r-- | drivers/pci/intel-iommu.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c index ee48fd073140..86a83946a8f5 100644 --- a/drivers/pci/intel-iommu.c +++ b/drivers/pci/intel-iommu.c | |||
@@ -2741,12 +2741,6 @@ static void intel_unmap_page(struct device *dev, dma_addr_t dev_addr, | |||
2741 | } | 2741 | } |
2742 | } | 2742 | } |
2743 | 2743 | ||
2744 | static void intel_unmap_single(struct device *dev, dma_addr_t dev_addr, size_t size, | ||
2745 | int dir) | ||
2746 | { | ||
2747 | intel_unmap_page(dev, dev_addr, size, dir, NULL); | ||
2748 | } | ||
2749 | |||
2750 | static void *intel_alloc_coherent(struct device *hwdev, size_t size, | 2744 | static void *intel_alloc_coherent(struct device *hwdev, size_t size, |
2751 | dma_addr_t *dma_handle, gfp_t flags) | 2745 | dma_addr_t *dma_handle, gfp_t flags) |
2752 | { | 2746 | { |
@@ -2779,7 +2773,7 @@ static void intel_free_coherent(struct device *hwdev, size_t size, void *vaddr, | |||
2779 | size = PAGE_ALIGN(size); | 2773 | size = PAGE_ALIGN(size); |
2780 | order = get_order(size); | 2774 | order = get_order(size); |
2781 | 2775 | ||
2782 | intel_unmap_single(hwdev, dma_handle, size, DMA_BIDIRECTIONAL); | 2776 | intel_unmap_page(hwdev, dma_handle, size, DMA_BIDIRECTIONAL, NULL); |
2783 | free_pages((unsigned long)vaddr, order); | 2777 | free_pages((unsigned long)vaddr, order); |
2784 | } | 2778 | } |
2785 | 2779 | ||