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
207}207}
208EXPORT_SYMBOL(dma_mmap_attrs);208EXPORT_SYMBOL(dma_mmap_attrs);
209 209
210#ifndef ARCH_HAS_DMA_GET_REQUIRED_MASK
211static u64 dma_default_get_required_mask(struct device *dev)210static u64 dma_default_get_required_mask(struct device *dev)
212{211{
213 u32 low_totalram = ((max_pfn - 1) << PAGE_SHIFT);212 u32 low_totalram = ((max_pfn - 1) << PAGE_SHIFT);
@@ -238,7 +237,6 @@ u64 dma_get_required_mask(struct device *dev) · 24 unmodified lines
238 return dma_default_get_required_mask(dev);237 return dma_default_get_required_mask(dev);
239}238}
240EXPORT_SYMBOL_GPL(dma_get_required_mask);239EXPORT_SYMBOL_GPL(dma_get_required_mask);
241#endif
242 240
243#ifndef arch_dma_alloc_attrs241#ifndef arch_dma_alloc_attrs
244#define arch_dma_alloc_attrs(dev) (true)242#define arch_dma_alloc_attrs(dev) (true)