aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/media/davinci_vpfe/vpfe_video.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/media/davinci_vpfe/vpfe_video.c b/drivers/staging/media/davinci_vpfe/vpfe_video.c
index 1f3b0f9a8d10..8c101cbbee97 100644
--- a/drivers/staging/media/davinci_vpfe/vpfe_video.c
+++ b/drivers/staging/media/davinci_vpfe/vpfe_video.c
@@ -1201,8 +1201,6 @@ static int vpfe_start_streaming(struct vb2_queue *vq, unsigned int count)
1201 unsigned long addr; 1201 unsigned long addr;
1202 int ret; 1202 int ret;
1203 1203
1204 if (count == 0)
1205 return -ENOBUFS;
1206 ret = mutex_lock_interruptible(&video->lock); 1204 ret = mutex_lock_interruptible(&video->lock);
1207 if (ret) 1205 if (ret)
1208 goto streamoff; 1206 goto streamoff;
@@ -1327,6 +1325,7 @@ static int vpfe_reqbufs(struct file *file, void *priv,
1327 q->type = req_buf->type; 1325 q->type = req_buf->type;
1328 q->io_modes = VB2_MMAP | VB2_USERPTR; 1326 q->io_modes = VB2_MMAP | VB2_USERPTR;
1329 q->drv_priv = fh; 1327 q->drv_priv = fh;
1328 q->min_buffers_needed = 1;
1330 q->ops = &video_qops; 1329 q->ops = &video_qops;
1331 q->mem_ops = &vb2_dma_contig_memops; 1330 q->mem_ops = &vb2_dma_contig_memops;
1332 q->buf_struct_size = sizeof(struct vpfe_cap_buffer); 1331 q->buf_struct_size = sizeof(struct vpfe_cap_buffer);