mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-11 15:49:56 +00:00
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>
This commit is contained in:
parent
ef5b5168e5
commit
028bbfedcc
@ -868,7 +868,7 @@ static void vino_sync_buffer(struct vino_framebuffer *fb)
|
||||
dprintk("vino_sync_buffer():\n");
|
||||
|
||||
for (i = 0; i < fb->desc_table.page_count; i++)
|
||||
dma_sync_single(NULL,
|
||||
dma_sync_single_for_cpu(NULL,
|
||||
fb->desc_table.dma_cpu[VINO_PAGE_RATIO * i],
|
||||
PAGE_SIZE, DMA_FROM_DEVICE);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user