History

powerpc/dma: stop overriding dma_get_required_mask

The ppc_md and pci_controller_ops methods are unused now and can be removed. The dma_nommu implementation is generic to the generic one except for using max_pfn instead of calling into the memblock API, and all other dma_map_ops instances implement a method of their own.

Christoph Hellwig committed 7 years ago

Commit ffe3dfd1 parent 2d6ad416 files · +0 −38Browse files

Showing the changes to kernel/dma (1 of 6 files). Show all

Unified · Split

kernel/dma/mapping.c+0−2
@@ -207,7 +207,6 @@ int dma_mmap_attrs(struct device *dev, struct vm_area_struct *vma, · 206 unmodified lines
207207 }
208208 EXPORT_SYMBOL(dma_mmap_attrs);
209209
210−#ifndef ARCH_HAS_DMA_GET_REQUIRED_MASK
211210 static u64 dma_default_get_required_mask(struct device *dev)
212211 {
213212 u32 low_totalram = ((max_pfn - 1) << PAGE_SHIFT);
@@ -238,7 +237,6 @@ u64 dma_get_required_mask(struct device *dev) · 24 unmodified lines
238237 return dma_default_get_required_mask(dev);
239238 }
240239 EXPORT_SYMBOL_GPL(dma_get_required_mask);
241−#endif
242240
243241 #ifndef arch_dma_alloc_attrs
244242 #define arch_dma_alloc_attrs(dev) (true)