aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/vino.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-08-22 16:12:08 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 07:36:52 -0400
commiteda9e4e29492aff55ceb3f719a6011bddc60a892 (patch)
tree88cf6a4b61a4bf1a1e7ef122073a8e52b6a3d963 /drivers/media/video/vino.c
parent614b147b4f8f38a090f88ac02f67b01225bb5d54 (diff)
V4L/DVB (8746): v4l-dvb: fix compile warnings.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/vino.c')
-rw-r--r--drivers/media/video/vino.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/vino.c b/drivers/media/video/vino.c
index 7072cdf74ed4..ca421cc84f8f 100644
--- a/drivers/media/video/vino.c
+++ b/drivers/media/video/vino.c
@@ -809,7 +809,7 @@ static void vino_free_buffer_with_count(struct vino_framebuffer *fb,
809 dprintk("vino_free_buffer_with_count(): count = %d\n", count); 809 dprintk("vino_free_buffer_with_count(): count = %d\n", count);
810 810
811 for (i = 0; i < count; i++) { 811 for (i = 0; i < count; i++) {
812 ClearPageReserved(virt_to_page(fb->desc_table.virtual[i])); 812 ClearPageReserved(virt_to_page((void *)fb->desc_table.virtual[i]));
813 dma_unmap_single(NULL, 813 dma_unmap_single(NULL,
814 fb->desc_table.dma_cpu[VINO_PAGE_RATIO * i], 814 fb->desc_table.dma_cpu[VINO_PAGE_RATIO * i],
815 PAGE_SIZE, DMA_FROM_DEVICE); 815 PAGE_SIZE, DMA_FROM_DEVICE);
@@ -887,7 +887,7 @@ static int vino_allocate_buffer(struct vino_framebuffer *fb,
887 dma_data_addr + VINO_PAGE_SIZE * j; 887 dma_data_addr + VINO_PAGE_SIZE * j;
888 } 888 }
889 889
890 SetPageReserved(virt_to_page(fb->desc_table.virtual[i])); 890 SetPageReserved(virt_to_page((void *)fb->desc_table.virtual[i]));
891 } 891 }
892 892
893 /* page_count needs to be set anyway, because the descriptor table has 893 /* page_count needs to be set anyway, because the descriptor table has
@@ -974,7 +974,7 @@ static int vino_prepare_user_buffer(struct vino_framebuffer *fb,
974 dma_data_addr + VINO_PAGE_SIZE * j; 974 dma_data_addr + VINO_PAGE_SIZE * j;
975 } 975 }
976 976
977 SetPageReserved(virt_to_page(fb->desc_table.virtual[i])); 977 SetPageReserved(virt_to_page((void *)fb->desc_table.virtual[i]));
978 } 978 }
979 979
980 /* page_count needs to be set anyway, because the descriptor table has 980 /* page_count needs to be set anyway, because the descriptor table has