summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorPawel Osciak <pawel@osciak.com>2011-03-14 14:38:24 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-22 23:41:58 +0100
commit472af2b05bdefcaee7e754e22cbf131110017ad6 (patch)
treee3fe18e25905bb069518e00b5a4d2f75a58f42f9 /drivers/media
parent[media] sh_mobile_ceu_camera: Do not call vb2's mem_ops directly (diff)
downloadlinux-472af2b05bdefcaee7e754e22cbf131110017ad6.tar.xz
linux-472af2b05bdefcaee7e754e22cbf131110017ad6.zip
[media] videobuf2-dma-contig: make cookie() return a pointer to dma_addr_t
dma_addr_t may not fit into void* on some architectures. To be safe, make vb2_dma_contig_cookie() return a pointer to dma_addr_t and dereference it in vb2_dma_contig_plane_paddr() back to dma_addr_t. Signed-off-by: Pawel Osciak <pawel@osciak.com> Reported-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/videobuf2-dma-contig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/videobuf2-dma-contig.c b/drivers/media/video/videobuf2-dma-contig.c
index 90495b7b4ddf..58205d596138 100644
--- a/drivers/media/video/videobuf2-dma-contig.c
+++ b/drivers/media/video/videobuf2-dma-contig.c
@@ -78,7 +78,7 @@ static void *vb2_dma_contig_cookie(void *buf_priv)
{
struct vb2_dc_buf *buf = buf_priv;
- return (void *)buf->paddr;
+ return &buf->paddr;
}
static void *vb2_dma_contig_vaddr(void *buf_priv)