diff options
author | Prabhakar Lad <prabhakar.csengg@gmail.com> | 2014-10-12 16:40:32 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-10-28 14:05:54 -0400 |
commit | f92a4e2d96387368e460f74e2c652d4ad34b0906 (patch) | |
tree | b5a98dab283e0ef0eb4f1f465ea90fd44fa5c756 | |
parent | e71a180628c71bbf69575f2801d3ce435e37c3db (diff) |
[media] media: davinci: vpbe: 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 <mchehab@osg.samsung.com>
-rw-r--r-- | drivers/media/platform/davinci/vpbe_display.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/media/platform/davinci/vpbe_display.c b/drivers/media/platform/davinci/vpbe_display.c index ff9eac4050d0..e2bda17f0ffd 100644 --- a/drivers/media/platform/davinci/vpbe_display.c +++ b/drivers/media/platform/davinci/vpbe_display.c | |||
@@ -322,15 +322,6 @@ static void vpbe_wait_finish(struct vb2_queue *vq) | |||
322 | mutex_lock(&layer->opslock); | 322 | mutex_lock(&layer->opslock); |
323 | } | 323 | } |
324 | 324 | ||
325 | static int vpbe_buffer_init(struct vb2_buffer *vb) | ||
326 | { | ||
327 | struct vpbe_disp_buffer *buf = container_of(vb, | ||
328 | struct vpbe_disp_buffer, vb); | ||
329 | |||
330 | INIT_LIST_HEAD(&buf->list); | ||
331 | return 0; | ||
332 | } | ||
333 | |||
334 | static int vpbe_start_streaming(struct vb2_queue *vq, unsigned int count) | 325 | static int vpbe_start_streaming(struct vb2_queue *vq, unsigned int count) |
335 | { | 326 | { |
336 | struct vpbe_layer *layer = vb2_get_drv_priv(vq); | 327 | struct vpbe_layer *layer = vb2_get_drv_priv(vq); |
@@ -405,7 +396,6 @@ static struct vb2_ops video_qops = { | |||
405 | .queue_setup = vpbe_buffer_queue_setup, | 396 | .queue_setup = vpbe_buffer_queue_setup, |
406 | .wait_prepare = vpbe_wait_prepare, | 397 | .wait_prepare = vpbe_wait_prepare, |
407 | .wait_finish = vpbe_wait_finish, | 398 | .wait_finish = vpbe_wait_finish, |
408 | .buf_init = vpbe_buffer_init, | ||
409 | .buf_prepare = vpbe_buffer_prepare, | 399 | .buf_prepare = vpbe_buffer_prepare, |
410 | .start_streaming = vpbe_start_streaming, | 400 | .start_streaming = vpbe_start_streaming, |
411 | .stop_streaming = vpbe_stop_streaming, | 401 | .stop_streaming = vpbe_stop_streaming, |