From: Mauro Carvalho Chehab Date: Wed, 5 May 2010 20:16:35 +0000 (-0300) Subject: V4L/DVB: videobuf-vmalloc: remove __videobuf_sync() X-Git-Tag: v3.0~4938^2~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c06b062bea411f616b0890d502044c7871d5332f;p=platform%2Fkernel%2Flinux-amlogic.git V4L/DVB: videobuf-vmalloc: remove __videobuf_sync() videobuf-core checks if .sync ops is defined before calling. So, we don't need a do-nothing function. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/videobuf-vmalloc.c b/drivers/media/video/videobuf-vmalloc.c index f8b5b56..583728f 100644 --- a/drivers/media/video/videobuf-vmalloc.c +++ b/drivers/media/video/videobuf-vmalloc.c @@ -229,12 +229,6 @@ static int __videobuf_iolock(struct videobuf_queue *q, return 0; } -static int __videobuf_sync(struct videobuf_queue *q, - struct videobuf_buffer *buf) -{ - return 0; -} - static int __videobuf_mmap_mapper(struct videobuf_queue *q, struct videobuf_buffer *buf, struct vm_area_struct *vma) @@ -301,7 +295,6 @@ static struct videobuf_qtype_ops qops = { .alloc = __videobuf_alloc, .iolock = __videobuf_iolock, - .sync = __videobuf_sync, .mmap_mapper = __videobuf_mmap_mapper, .vaddr = videobuf_to_vmalloc, };