Commit 0d1d9092b536859a333ee96cff4df0ee24b55190

Authored by David S. Miller
1 parent b914c5b213

sparc: Add NOP dma_cache_sync() implementation.

This can be a NOP because we forward dma_{alloc,free}_noncoherent to
dma_{alloc,free}_coherent.

Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 8 additions and 0 deletions Side-by-side Diff

arch/sparc/include/asm/dma-mapping.h
... ... @@ -12,6 +12,14 @@
12 12 #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
13 13 #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
14 14  
  15 +static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
  16 + enum dma_data_direction dir)
  17 +{
  18 + /* Since dma_{alloc,free}_noncoherent() allocated coherent memory, this
  19 + * routine can be a nop.
  20 + */
  21 +}
  22 +
15 23 extern struct dma_map_ops *dma_ops;
16 24 extern struct dma_map_ops *leon_dma_ops;
17 25 extern struct dma_map_ops pci32_dma_ops;