diff options
Diffstat (limited to 'arch/x86/kernel/pci-dma.c')
-rw-r--r-- | arch/x86/kernel/pci-dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c index 0a3824e837b4..192624820217 100644 --- a/arch/x86/kernel/pci-dma.c +++ b/arch/x86/kernel/pci-dma.c | |||
@@ -125,13 +125,13 @@ void __init pci_iommu_alloc(void) | |||
125 | pci_swiotlb_init(); | 125 | pci_swiotlb_init(); |
126 | } | 126 | } |
127 | 127 | ||
128 | unsigned long iommu_num_pages(unsigned long addr, unsigned long len) | 128 | unsigned long iommu_nr_pages(unsigned long addr, unsigned long len) |
129 | { | 129 | { |
130 | unsigned long size = roundup((addr & ~PAGE_MASK) + len, PAGE_SIZE); | 130 | unsigned long size = roundup((addr & ~PAGE_MASK) + len, PAGE_SIZE); |
131 | 131 | ||
132 | return size >> PAGE_SHIFT; | 132 | return size >> PAGE_SHIFT; |
133 | } | 133 | } |
134 | EXPORT_SYMBOL(iommu_num_pages); | 134 | EXPORT_SYMBOL(iommu_nr_pages); |
135 | #endif | 135 | #endif |
136 | 136 | ||
137 | void *dma_generic_alloc_coherent(struct device *dev, size_t size, | 137 | void *dma_generic_alloc_coherent(struct device *dev, size_t size, |