diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2009-05-27 21:10:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 18:07:26 -0400 |
commit | 028bbfedcc00225d4a1d700e75658d773523005d (patch) | |
tree | 4031a679d59b163ee8d37900fcc0b3e5c8a94759 /drivers/media/video/vino.c | |
parent | ef5b5168e58021f87af53283002795ce5a787c2b (diff) |
V4L/DVB (11937): vino: replace dma_sync_single with dma_sync_single_for_cpu
This replaces dma_sync_single() with dma_sync_single_for_cpu() because
dma_sync_single() is an obsolete API; include/linux/dma-mapping.h says:
/* Backwards compat, remove in 2.7.x */
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/vino.c')
-rw-r--r-- | drivers/media/video/vino.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/vino.c b/drivers/media/video/vino.c index 43e0998adb53..97b082fe4473 100644 --- a/drivers/media/video/vino.c +++ b/drivers/media/video/vino.c | |||
@@ -868,9 +868,9 @@ static void vino_sync_buffer(struct vino_framebuffer *fb) | |||
868 | dprintk("vino_sync_buffer():\n"); | 868 | dprintk("vino_sync_buffer():\n"); |
869 | 869 | ||
870 | for (i = 0; i < fb->desc_table.page_count; i++) | 870 | for (i = 0; i < fb->desc_table.page_count; i++) |
871 | dma_sync_single(NULL, | 871 | dma_sync_single_for_cpu(NULL, |
872 | fb->desc_table.dma_cpu[VINO_PAGE_RATIO * i], | 872 | fb->desc_table.dma_cpu[VINO_PAGE_RATIO * i], |
873 | PAGE_SIZE, DMA_FROM_DEVICE); | 873 | PAGE_SIZE, DMA_FROM_DEVICE); |
874 | } | 874 | } |
875 | 875 | ||
876 | /* Framebuffer fifo functions (need to be locked externally) */ | 876 | /* Framebuffer fifo functions (need to be locked externally) */ |