Skip to content

Commit cf38f41

Browse files
author
Mauro Carvalho Chehab
committed
Revert "videobuf2-dma-contig: Only support if HAVE_GENERIC_DMA_COHERENT"
The right solution is to remove the architecture dependency on dma_common_get_sgtable(). Revert this patch to apply the right one. This reverts commit 93049b9.
1 parent 93049b9 commit cf38f41

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎drivers/media/v4l2-core/videobuf2-dma-contig.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,6 @@ static int vb2_dc_mmap(void *buf_priv, struct vm_area_struct *vma)
226226
/* DMABUF ops for exporters */
227227
/*********************************************/
228228

229-
#ifdef HAVE_GENERIC_DMA_COHERENT
230-
231229
struct vb2_dc_attachment {
232230
struct sg_table sgt;
233231
enum dma_data_direction dir;
@@ -418,8 +416,6 @@ static struct dma_buf *vb2_dc_get_dmabuf(void *buf_priv)
418416
return dbuf;
419417
}
420418

421-
#endif
422-
423419
/*********************************************/
424420
/* callbacks for USERPTR buffers */
425421
/*********************************************/
@@ -739,9 +735,7 @@ static void *vb2_dc_attach_dmabuf(void *alloc_ctx, struct dma_buf *dbuf,
739735
const struct vb2_mem_ops vb2_dma_contig_memops = {
740736
.alloc = vb2_dc_alloc,
741737
.put = vb2_dc_put,
742-
#ifdef CONFIG_HAVE_GENERIC_DMA_COHERENT
743738
.get_dmabuf = vb2_dc_get_dmabuf,
744-
#endif
745739
.cookie = vb2_dc_cookie,
746740
.vaddr = vb2_dc_vaddr,
747741
.mmap = vb2_dc_mmap,

0 commit comments

Comments
 (0)