|
@@ -51,7 +51,6 @@ static int nommu_map_sg(struct device *dev, struct scatterlist *sg,
|
|
|
return nents;
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_DMA_NONCOHERENT
|
|
|
static void nommu_sync_single_for_device(struct device *dev, dma_addr_t addr,
|
|
|
size_t size, enum dma_data_direction dir)
|
|
|
{
|
|
@@ -67,16 +66,13 @@ static void nommu_sync_sg_for_device(struct device *dev, struct scatterlist *sg,
|
|
|
for_each_sg(sg, s, nelems, i)
|
|
|
sh_sync_dma_for_device(sg_virt(s), s->length, dir);
|
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
const struct dma_map_ops nommu_dma_ops = {
|
|
|
.alloc = dma_generic_alloc_coherent,
|
|
|
.free = dma_generic_free_coherent,
|
|
|
.map_page = nommu_map_page,
|
|
|
.map_sg = nommu_map_sg,
|
|
|
-#ifdef CONFIG_DMA_NONCOHERENT
|
|
|
.sync_single_for_device = nommu_sync_single_for_device,
|
|
|
.sync_sg_for_device = nommu_sync_sg_for_device,
|
|
|
-#endif
|
|
|
};
|
|
|
EXPORT_SYMBOL(nommu_dma_ops);
|