Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

m68knommu: add a local dma_sync_single_for_cpu() function

The onboard ethernet of many ColdFire parts uses DMA. The driver
is being cleaned up to use the correct DMA handling functions, and
m68knommuy currently does not implement dma_sync_single_for_cpu().

Signed-off-by: Greg Ungerer <gerg@uclinux.org>

+7 -1
+7 -1
arch/m68knommu/kernel/dma.c
··· 9 9 #include <linux/mm.h> 10 10 #include <linux/string.h> 11 11 #include <linux/device.h> 12 + #include <linux/dma-mapping.h> 12 13 #include <asm/io.h> 13 14 14 15 void *dma_alloc_coherent(struct device *dev, size_t size, 15 - dma_addr_t *dma_handle, int gfp) 16 + dma_addr_t *dma_handle, gfp_t gfp) 16 17 { 17 18 void *ret; 18 19 /* ignore region specifiers */ ··· 35 34 { 36 35 free_pages((unsigned long)vaddr, get_order(size)); 37 36 } 37 + 38 + void dma_sync_single_for_cpu(struct device *dev, dma_addr_t handle, size_t size, enum dma_data_direction dir) 39 + { 40 + } 41 +