diff options
author | Lad, Prabhakar <prabhakar.csengg@gmail.com> | 2014-05-16 17:33:32 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-05-24 02:19:23 +0400 |
commit | 3766524874f3ae4e265c4e75c2b6c5c5f8eae986 (patch) | |
tree | 6b160321b9827c35d4f26921810178a6c116239f | |
parent | fa09accc662a85ad91b2021689f37540a5185dbd (diff) | |
download | linux-3766524874f3ae4e265c4e75c2b6c5c5f8eae986.tar.xz |
[media] media: davinci: vpif_capture: drop buf_init() callback
this patch drops the buf_init() callback as init
of buf list is not required.
Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r-- | drivers/media/platform/davinci/vpif_capture.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/media/platform/davinci/vpif_capture.c index b035c88dd0a6..484d8585e11c 100644 --- a/drivers/media/platform/davinci/vpif_capture.c +++ b/drivers/media/platform/davinci/vpif_capture.c @@ -242,15 +242,6 @@ static void vpif_wait_finish(struct vb2_queue *vq) mutex_lock(&common->lock); } -static int vpif_buffer_init(struct vb2_buffer *vb) -{ - struct vpif_cap_buffer *buf = to_vpif_buffer(vb); - - INIT_LIST_HEAD(&buf->list); - - return 0; -} - static int vpif_start_streaming(struct vb2_queue *vq, unsigned int count) { struct vpif_capture_config *vpif_config_data = @@ -385,7 +376,6 @@ static struct vb2_ops video_qops = { .queue_setup = vpif_buffer_queue_setup, .wait_prepare = vpif_wait_prepare, .wait_finish = vpif_wait_finish, - .buf_init = vpif_buffer_init, .buf_prepare = vpif_buffer_prepare, .start_streaming = vpif_start_streaming, .stop_streaming = vpif_stop_streaming, |