diff options
Diffstat (limited to 'drivers/media/platform')
24 files changed, 38 insertions, 68 deletions
diff --git a/drivers/media/platform/blackfin/bfin_capture.c b/drivers/media/platform/blackfin/bfin_capture.c index 200bec91182e..dfb09d4ee6d1 100644 --- a/drivers/media/platform/blackfin/bfin_capture.c +++ b/drivers/media/platform/blackfin/bfin_capture.c | |||
@@ -427,7 +427,7 @@ static int bcap_start_streaming(struct vb2_queue *vq, unsigned int count) | |||
427 | return 0; | 427 | return 0; |
428 | } | 428 | } |
429 | 429 | ||
430 | static int bcap_stop_streaming(struct vb2_queue *vq) | 430 | static void bcap_stop_streaming(struct vb2_queue *vq) |
431 | { | 431 | { |
432 | struct bcap_device *bcap_dev = vb2_get_drv_priv(vq); | 432 | struct bcap_device *bcap_dev = vb2_get_drv_priv(vq); |
433 | struct ppi_if *ppi = bcap_dev->ppi; | 433 | struct ppi_if *ppi = bcap_dev->ppi; |
@@ -452,7 +452,6 @@ static int bcap_stop_streaming(struct vb2_queue *vq) | |||
452 | list_del(&bcap_dev->cur_frm->list); | 452 | list_del(&bcap_dev->cur_frm->list); |
453 | vb2_buffer_done(&bcap_dev->cur_frm->vb, VB2_BUF_STATE_ERROR); | 453 | vb2_buffer_done(&bcap_dev->cur_frm->vb, VB2_BUF_STATE_ERROR); |
454 | } | 454 | } |
455 | return 0; | ||
456 | } | 455 | } |
457 | 456 | ||
458 | static struct vb2_ops bcap_video_qops = { | 457 | static struct vb2_ops bcap_video_qops = { |
diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 3e5199ee5d25..d9b1a0409076 100644 --- a/drivers/media/platform/coda.c +++ b/drivers/media/platform/coda.c | |||
@@ -2269,7 +2269,7 @@ out: | |||
2269 | return ret; | 2269 | return ret; |
2270 | } | 2270 | } |
2271 | 2271 | ||
2272 | static int coda_stop_streaming(struct vb2_queue *q) | 2272 | static void coda_stop_streaming(struct vb2_queue *q) |
2273 | { | 2273 | { |
2274 | struct coda_ctx *ctx = vb2_get_drv_priv(q); | 2274 | struct coda_ctx *ctx = vb2_get_drv_priv(q); |
2275 | struct coda_dev *dev = ctx->dev; | 2275 | struct coda_dev *dev = ctx->dev; |
@@ -2295,8 +2295,6 @@ static int coda_stop_streaming(struct vb2_queue *q) | |||
2295 | ctx->bitstream.vaddr, ctx->bitstream.size); | 2295 | ctx->bitstream.vaddr, ctx->bitstream.size); |
2296 | ctx->runcounter = 0; | 2296 | ctx->runcounter = 0; |
2297 | } | 2297 | } |
2298 | |||
2299 | return 0; | ||
2300 | } | 2298 | } |
2301 | 2299 | ||
2302 | static struct vb2_ops coda_qops = { | 2300 | static struct vb2_ops coda_qops = { |
diff --git a/drivers/media/platform/davinci/vpbe_display.c b/drivers/media/platform/davinci/vpbe_display.c index a9ad949d0c19..4025b1b8aff4 100644 --- a/drivers/media/platform/davinci/vpbe_display.c +++ b/drivers/media/platform/davinci/vpbe_display.c | |||
@@ -368,7 +368,7 @@ static int vpbe_start_streaming(struct vb2_queue *vq, unsigned int count) | |||
368 | return ret; | 368 | return ret; |
369 | } | 369 | } |
370 | 370 | ||
371 | static int vpbe_stop_streaming(struct vb2_queue *vq) | 371 | static void vpbe_stop_streaming(struct vb2_queue *vq) |
372 | { | 372 | { |
373 | struct vpbe_fh *fh = vb2_get_drv_priv(vq); | 373 | struct vpbe_fh *fh = vb2_get_drv_priv(vq); |
374 | struct vpbe_layer *layer = fh->layer; | 374 | struct vpbe_layer *layer = fh->layer; |
@@ -376,7 +376,7 @@ static int vpbe_stop_streaming(struct vb2_queue *vq) | |||
376 | unsigned long flags; | 376 | unsigned long flags; |
377 | 377 | ||
378 | if (!vb2_is_streaming(vq)) | 378 | if (!vb2_is_streaming(vq)) |
379 | return 0; | 379 | return; |
380 | 380 | ||
381 | /* release all active buffers */ | 381 | /* release all active buffers */ |
382 | spin_lock_irqsave(&disp->dma_queue_lock, flags); | 382 | spin_lock_irqsave(&disp->dma_queue_lock, flags); |
@@ -398,7 +398,6 @@ static int vpbe_stop_streaming(struct vb2_queue *vq) | |||
398 | vb2_buffer_done(&layer->next_frm->vb, VB2_BUF_STATE_ERROR); | 398 | vb2_buffer_done(&layer->next_frm->vb, VB2_BUF_STATE_ERROR); |
399 | } | 399 | } |
400 | spin_unlock_irqrestore(&disp->dma_queue_lock, flags); | 400 | spin_unlock_irqrestore(&disp->dma_queue_lock, flags); |
401 | return 0; | ||
402 | } | 401 | } |
403 | 402 | ||
404 | static struct vb2_ops video_qops = { | 403 | static struct vb2_ops video_qops = { |
diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/media/platform/davinci/vpif_capture.c index 8dea0b84a3ad..d09a27a23c5d 100644 --- a/drivers/media/platform/davinci/vpif_capture.c +++ b/drivers/media/platform/davinci/vpif_capture.c | |||
@@ -346,7 +346,7 @@ static int vpif_start_streaming(struct vb2_queue *vq, unsigned int count) | |||
346 | } | 346 | } |
347 | 347 | ||
348 | /* abort streaming and wait for last buffer */ | 348 | /* abort streaming and wait for last buffer */ |
349 | static int vpif_stop_streaming(struct vb2_queue *vq) | 349 | static void vpif_stop_streaming(struct vb2_queue *vq) |
350 | { | 350 | { |
351 | struct vpif_fh *fh = vb2_get_drv_priv(vq); | 351 | struct vpif_fh *fh = vb2_get_drv_priv(vq); |
352 | struct channel_obj *ch = fh->channel; | 352 | struct channel_obj *ch = fh->channel; |
@@ -354,7 +354,7 @@ static int vpif_stop_streaming(struct vb2_queue *vq) | |||
354 | unsigned long flags; | 354 | unsigned long flags; |
355 | 355 | ||
356 | if (!vb2_is_streaming(vq)) | 356 | if (!vb2_is_streaming(vq)) |
357 | return 0; | 357 | return; |
358 | 358 | ||
359 | common = &ch->common[VPIF_VIDEO_INDEX]; | 359 | common = &ch->common[VPIF_VIDEO_INDEX]; |
360 | 360 | ||
@@ -390,8 +390,6 @@ static int vpif_stop_streaming(struct vb2_queue *vq) | |||
390 | vb2_buffer_done(&common->next_frm->vb, VB2_BUF_STATE_ERROR); | 390 | vb2_buffer_done(&common->next_frm->vb, VB2_BUF_STATE_ERROR); |
391 | } | 391 | } |
392 | spin_unlock_irqrestore(&common->irqlock, flags); | 392 | spin_unlock_irqrestore(&common->irqlock, flags); |
393 | |||
394 | return 0; | ||
395 | } | 393 | } |
396 | 394 | ||
397 | static struct vb2_ops video_qops = { | 395 | static struct vb2_ops video_qops = { |
diff --git a/drivers/media/platform/davinci/vpif_display.c b/drivers/media/platform/davinci/vpif_display.c index aed41edd0501..d03487fb1888 100644 --- a/drivers/media/platform/davinci/vpif_display.c +++ b/drivers/media/platform/davinci/vpif_display.c | |||
@@ -308,7 +308,7 @@ static int vpif_start_streaming(struct vb2_queue *vq, unsigned int count) | |||
308 | } | 308 | } |
309 | 309 | ||
310 | /* abort streaming and wait for last buffer */ | 310 | /* abort streaming and wait for last buffer */ |
311 | static int vpif_stop_streaming(struct vb2_queue *vq) | 311 | static void vpif_stop_streaming(struct vb2_queue *vq) |
312 | { | 312 | { |
313 | struct vpif_fh *fh = vb2_get_drv_priv(vq); | 313 | struct vpif_fh *fh = vb2_get_drv_priv(vq); |
314 | struct channel_obj *ch = fh->channel; | 314 | struct channel_obj *ch = fh->channel; |
@@ -316,7 +316,7 @@ static int vpif_stop_streaming(struct vb2_queue *vq) | |||
316 | unsigned long flags; | 316 | unsigned long flags; |
317 | 317 | ||
318 | if (!vb2_is_streaming(vq)) | 318 | if (!vb2_is_streaming(vq)) |
319 | return 0; | 319 | return; |
320 | 320 | ||
321 | common = &ch->common[VPIF_VIDEO_INDEX]; | 321 | common = &ch->common[VPIF_VIDEO_INDEX]; |
322 | 322 | ||
@@ -352,8 +352,6 @@ static int vpif_stop_streaming(struct vb2_queue *vq) | |||
352 | vb2_buffer_done(&common->next_frm->vb, VB2_BUF_STATE_ERROR); | 352 | vb2_buffer_done(&common->next_frm->vb, VB2_BUF_STATE_ERROR); |
353 | } | 353 | } |
354 | spin_unlock_irqrestore(&common->irqlock, flags); | 354 | spin_unlock_irqrestore(&common->irqlock, flags); |
355 | |||
356 | return 0; | ||
357 | } | 355 | } |
358 | 356 | ||
359 | static struct vb2_ops video_qops = { | 357 | static struct vb2_ops video_qops = { |
diff --git a/drivers/media/platform/exynos-gsc/gsc-m2m.c b/drivers/media/platform/exynos-gsc/gsc-m2m.c index d0ea94f58d6f..e434f1f03d7b 100644 --- a/drivers/media/platform/exynos-gsc/gsc-m2m.c +++ b/drivers/media/platform/exynos-gsc/gsc-m2m.c | |||
@@ -66,15 +66,13 @@ static int gsc_m2m_start_streaming(struct vb2_queue *q, unsigned int count) | |||
66 | return ret > 0 ? 0 : ret; | 66 | return ret > 0 ? 0 : ret; |
67 | } | 67 | } |
68 | 68 | ||
69 | static int gsc_m2m_stop_streaming(struct vb2_queue *q) | 69 | static void gsc_m2m_stop_streaming(struct vb2_queue *q) |
70 | { | 70 | { |
71 | struct gsc_ctx *ctx = q->drv_priv; | 71 | struct gsc_ctx *ctx = q->drv_priv; |
72 | 72 | ||
73 | __gsc_m2m_job_abort(ctx); | 73 | __gsc_m2m_job_abort(ctx); |
74 | 74 | ||
75 | pm_runtime_put(&ctx->gsc_dev->pdev->dev); | 75 | pm_runtime_put(&ctx->gsc_dev->pdev->dev); |
76 | |||
77 | return 0; | ||
78 | } | 76 | } |
79 | 77 | ||
80 | void gsc_m2m_job_finish(struct gsc_ctx *ctx, int vb_state) | 78 | void gsc_m2m_job_finish(struct gsc_ctx *ctx, int vb_state) |
diff --git a/drivers/media/platform/exynos4-is/fimc-capture.c b/drivers/media/platform/exynos4-is/fimc-capture.c index 92ae812abce2..3d2babd5067a 100644 --- a/drivers/media/platform/exynos4-is/fimc-capture.c +++ b/drivers/media/platform/exynos4-is/fimc-capture.c | |||
@@ -294,15 +294,15 @@ static int start_streaming(struct vb2_queue *q, unsigned int count) | |||
294 | return 0; | 294 | return 0; |
295 | } | 295 | } |
296 | 296 | ||
297 | static int stop_streaming(struct vb2_queue *q) | 297 | static void stop_streaming(struct vb2_queue *q) |
298 | { | 298 | { |
299 | struct fimc_ctx *ctx = q->drv_priv; | 299 | struct fimc_ctx *ctx = q->drv_priv; |
300 | struct fimc_dev *fimc = ctx->fimc_dev; | 300 | struct fimc_dev *fimc = ctx->fimc_dev; |
301 | 301 | ||
302 | if (!fimc_capture_active(fimc)) | 302 | if (!fimc_capture_active(fimc)) |
303 | return -EINVAL; | 303 | return; |
304 | 304 | ||
305 | return fimc_stop_capture(fimc, false); | 305 | fimc_stop_capture(fimc, false); |
306 | } | 306 | } |
307 | 307 | ||
308 | int fimc_capture_suspend(struct fimc_dev *fimc) | 308 | int fimc_capture_suspend(struct fimc_dev *fimc) |
diff --git a/drivers/media/platform/exynos4-is/fimc-isp-video.c b/drivers/media/platform/exynos4-is/fimc-isp-video.c index e92b4e115adb..ced46600e343 100644 --- a/drivers/media/platform/exynos4-is/fimc-isp-video.c +++ b/drivers/media/platform/exynos4-is/fimc-isp-video.c | |||
@@ -125,7 +125,7 @@ static int isp_video_capture_start_streaming(struct vb2_queue *q, | |||
125 | return ret; | 125 | return ret; |
126 | } | 126 | } |
127 | 127 | ||
128 | static int isp_video_capture_stop_streaming(struct vb2_queue *q) | 128 | static void isp_video_capture_stop_streaming(struct vb2_queue *q) |
129 | { | 129 | { |
130 | struct fimc_isp *isp = vb2_get_drv_priv(q); | 130 | struct fimc_isp *isp = vb2_get_drv_priv(q); |
131 | struct fimc_is *is = fimc_isp_to_is(isp); | 131 | struct fimc_is *is = fimc_isp_to_is(isp); |
@@ -134,7 +134,7 @@ static int isp_video_capture_stop_streaming(struct vb2_queue *q) | |||
134 | 134 | ||
135 | ret = fimc_pipeline_call(&isp->video_capture.ve, set_stream, 0); | 135 | ret = fimc_pipeline_call(&isp->video_capture.ve, set_stream, 0); |
136 | if (ret < 0) | 136 | if (ret < 0) |
137 | return ret; | 137 | return; |
138 | 138 | ||
139 | dma->cmd = DMA_OUTPUT_COMMAND_DISABLE; | 139 | dma->cmd = DMA_OUTPUT_COMMAND_DISABLE; |
140 | dma->notify_dma_done = DMA_OUTPUT_NOTIFY_DMA_DONE_DISABLE; | 140 | dma->notify_dma_done = DMA_OUTPUT_NOTIFY_DMA_DONE_DISABLE; |
@@ -155,7 +155,6 @@ static int isp_video_capture_stop_streaming(struct vb2_queue *q) | |||
155 | clear_bit(ST_ISP_VID_CAP_STREAMING, &isp->state); | 155 | clear_bit(ST_ISP_VID_CAP_STREAMING, &isp->state); |
156 | 156 | ||
157 | isp->video_capture.buf_count = 0; | 157 | isp->video_capture.buf_count = 0; |
158 | return 0; | ||
159 | } | 158 | } |
160 | 159 | ||
161 | static int isp_video_capture_buffer_prepare(struct vb2_buffer *vb) | 160 | static int isp_video_capture_buffer_prepare(struct vb2_buffer *vb) |
diff --git a/drivers/media/platform/exynos4-is/fimc-lite.c b/drivers/media/platform/exynos4-is/fimc-lite.c index 3ad660b55b6b..630aef52dbb8 100644 --- a/drivers/media/platform/exynos4-is/fimc-lite.c +++ b/drivers/media/platform/exynos4-is/fimc-lite.c | |||
@@ -350,14 +350,14 @@ static int start_streaming(struct vb2_queue *q, unsigned int count) | |||
350 | return 0; | 350 | return 0; |
351 | } | 351 | } |
352 | 352 | ||
353 | static int stop_streaming(struct vb2_queue *q) | 353 | static void stop_streaming(struct vb2_queue *q) |
354 | { | 354 | { |
355 | struct fimc_lite *fimc = q->drv_priv; | 355 | struct fimc_lite *fimc = q->drv_priv; |
356 | 356 | ||
357 | if (!fimc_lite_active(fimc)) | 357 | if (!fimc_lite_active(fimc)) |
358 | return -EINVAL; | 358 | return; |
359 | 359 | ||
360 | return fimc_lite_stop_capture(fimc, false); | 360 | fimc_lite_stop_capture(fimc, false); |
361 | } | 361 | } |
362 | 362 | ||
363 | static int queue_setup(struct vb2_queue *vq, const struct v4l2_format *pfmt, | 363 | static int queue_setup(struct vb2_queue *vq, const struct v4l2_format *pfmt, |
diff --git a/drivers/media/platform/exynos4-is/fimc-m2m.c b/drivers/media/platform/exynos4-is/fimc-m2m.c index 36971d915b53..d314155da9e4 100644 --- a/drivers/media/platform/exynos4-is/fimc-m2m.c +++ b/drivers/media/platform/exynos4-is/fimc-m2m.c | |||
@@ -85,7 +85,7 @@ static int start_streaming(struct vb2_queue *q, unsigned int count) | |||
85 | return ret > 0 ? 0 : ret; | 85 | return ret > 0 ? 0 : ret; |
86 | } | 86 | } |
87 | 87 | ||
88 | static int stop_streaming(struct vb2_queue *q) | 88 | static void stop_streaming(struct vb2_queue *q) |
89 | { | 89 | { |
90 | struct fimc_ctx *ctx = q->drv_priv; | 90 | struct fimc_ctx *ctx = q->drv_priv; |
91 | int ret; | 91 | int ret; |
@@ -95,7 +95,6 @@ static int stop_streaming(struct vb2_queue *q) | |||
95 | fimc_m2m_job_finish(ctx, VB2_BUF_STATE_ERROR); | 95 | fimc_m2m_job_finish(ctx, VB2_BUF_STATE_ERROR); |
96 | 96 | ||
97 | pm_runtime_put(&ctx->fimc_dev->pdev->dev); | 97 | pm_runtime_put(&ctx->fimc_dev->pdev->dev); |
98 | return 0; | ||
99 | } | 98 | } |
100 | 99 | ||
101 | static void fimc_device_run(void *priv) | 100 | static void fimc_device_run(void *priv) |
diff --git a/drivers/media/platform/marvell-ccic/mcam-core.c b/drivers/media/platform/marvell-ccic/mcam-core.c index 8b34c485be79..be4b51212106 100644 --- a/drivers/media/platform/marvell-ccic/mcam-core.c +++ b/drivers/media/platform/marvell-ccic/mcam-core.c | |||
@@ -1156,7 +1156,7 @@ static int mcam_vb_start_streaming(struct vb2_queue *vq, unsigned int count) | |||
1156 | return mcam_read_setup(cam); | 1156 | return mcam_read_setup(cam); |
1157 | } | 1157 | } |
1158 | 1158 | ||
1159 | static int mcam_vb_stop_streaming(struct vb2_queue *vq) | 1159 | static void mcam_vb_stop_streaming(struct vb2_queue *vq) |
1160 | { | 1160 | { |
1161 | struct mcam_camera *cam = vb2_get_drv_priv(vq); | 1161 | struct mcam_camera *cam = vb2_get_drv_priv(vq); |
1162 | unsigned long flags; | 1162 | unsigned long flags; |
@@ -1164,10 +1164,10 @@ static int mcam_vb_stop_streaming(struct vb2_queue *vq) | |||
1164 | if (cam->state == S_BUFWAIT) { | 1164 | if (cam->state == S_BUFWAIT) { |
1165 | /* They never gave us buffers */ | 1165 | /* They never gave us buffers */ |
1166 | cam->state = S_IDLE; | 1166 | cam->state = S_IDLE; |
1167 | return 0; | 1167 | return; |
1168 | } | 1168 | } |
1169 | if (cam->state != S_STREAMING) | 1169 | if (cam->state != S_STREAMING) |
1170 | return -EINVAL; | 1170 | return; |
1171 | mcam_ctlr_stop_dma(cam); | 1171 | mcam_ctlr_stop_dma(cam); |
1172 | /* | 1172 | /* |
1173 | * Reset the CCIC PHY after stopping streaming, | 1173 | * Reset the CCIC PHY after stopping streaming, |
@@ -1182,7 +1182,6 @@ static int mcam_vb_stop_streaming(struct vb2_queue *vq) | |||
1182 | spin_lock_irqsave(&cam->dev_lock, flags); | 1182 | spin_lock_irqsave(&cam->dev_lock, flags); |
1183 | INIT_LIST_HEAD(&cam->buffers); | 1183 | INIT_LIST_HEAD(&cam->buffers); |
1184 | spin_unlock_irqrestore(&cam->dev_lock, flags); | 1184 | spin_unlock_irqrestore(&cam->dev_lock, flags); |
1185 | return 0; | ||
1186 | } | 1185 | } |
1187 | 1186 | ||
1188 | 1187 | ||
diff --git a/drivers/media/platform/mem2mem_testdev.c b/drivers/media/platform/mem2mem_testdev.c index 4f3096b17066..0714070ed7fa 100644 --- a/drivers/media/platform/mem2mem_testdev.c +++ b/drivers/media/platform/mem2mem_testdev.c | |||
@@ -787,7 +787,7 @@ static int m2mtest_start_streaming(struct vb2_queue *q, unsigned count) | |||
787 | return 0; | 787 | return 0; |
788 | } | 788 | } |
789 | 789 | ||
790 | static int m2mtest_stop_streaming(struct vb2_queue *q) | 790 | static void m2mtest_stop_streaming(struct vb2_queue *q) |
791 | { | 791 | { |
792 | struct m2mtest_ctx *ctx = vb2_get_drv_priv(q); | 792 | struct m2mtest_ctx *ctx = vb2_get_drv_priv(q); |
793 | struct vb2_buffer *vb; | 793 | struct vb2_buffer *vb; |
@@ -799,12 +799,11 @@ static int m2mtest_stop_streaming(struct vb2_queue *q) | |||
799 | else | 799 | else |
800 | vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); | 800 | vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); |
801 | if (vb == NULL) | 801 | if (vb == NULL) |
802 | return 0; | 802 | return; |
803 | spin_lock_irqsave(&ctx->dev->irqlock, flags); | 803 | spin_lock_irqsave(&ctx->dev->irqlock, flags); |
804 | v4l2_m2m_buf_done(vb, VB2_BUF_STATE_ERROR); | 804 | v4l2_m2m_buf_done(vb, VB2_BUF_STATE_ERROR); |
805 | spin_unlock_irqrestore(&ctx->dev->irqlock, flags); | 805 | spin_unlock_irqrestore(&ctx->dev->irqlock, flags); |
806 | } | 806 | } |
807 | return 0; | ||
808 | } | 807 | } |
809 | 808 | ||
810 | static struct vb2_ops m2mtest_qops = { | 809 | static struct vb2_ops m2mtest_qops = { |
diff --git a/drivers/media/platform/s3c-camif/camif-capture.c b/drivers/media/platform/s3c-camif/camif-capture.c index 4e4d1631e042..deba425e3d8f 100644 --- a/drivers/media/platform/s3c-camif/camif-capture.c +++ b/drivers/media/platform/s3c-camif/camif-capture.c | |||
@@ -435,10 +435,10 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count) | |||
435 | return 0; | 435 | return 0; |
436 | } | 436 | } |
437 | 437 | ||
438 | static int stop_streaming(struct vb2_queue *vq) | 438 | static void stop_streaming(struct vb2_queue *vq) |
439 | { | 439 | { |
440 | struct camif_vp *vp = vb2_get_drv_priv(vq); | 440 | struct camif_vp *vp = vb2_get_drv_priv(vq); |
441 | return camif_stop_capture(vp); | 441 | camif_stop_capture(vp); |
442 | } | 442 | } |
443 | 443 | ||
444 | static int queue_setup(struct vb2_queue *vq, const struct v4l2_format *pfmt, | 444 | static int queue_setup(struct vb2_queue *vq, const struct v4l2_format *pfmt, |
diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index 8a18972012f7..368b3f6df24b 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c | |||
@@ -1670,13 +1670,11 @@ static int s5p_jpeg_start_streaming(struct vb2_queue *q, unsigned int count) | |||
1670 | return ret > 0 ? 0 : ret; | 1670 | return ret > 0 ? 0 : ret; |
1671 | } | 1671 | } |
1672 | 1672 | ||
1673 | static int s5p_jpeg_stop_streaming(struct vb2_queue *q) | 1673 | static void s5p_jpeg_stop_streaming(struct vb2_queue *q) |
1674 | { | 1674 | { |
1675 | struct s5p_jpeg_ctx *ctx = vb2_get_drv_priv(q); | 1675 | struct s5p_jpeg_ctx *ctx = vb2_get_drv_priv(q); |
1676 | 1676 | ||
1677 | pm_runtime_put(ctx->jpeg->dev); | 1677 | pm_runtime_put(ctx->jpeg->dev); |
1678 | |||
1679 | return 0; | ||
1680 | } | 1678 | } |
1681 | 1679 | ||
1682 | static struct vb2_ops s5p_jpeg_qops = { | 1680 | static struct vb2_ops s5p_jpeg_qops = { |
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c index 8faf9691712d..58b7bbaa2da0 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | |||
@@ -1027,7 +1027,7 @@ static int s5p_mfc_start_streaming(struct vb2_queue *q, unsigned int count) | |||
1027 | return 0; | 1027 | return 0; |
1028 | } | 1028 | } |
1029 | 1029 | ||
1030 | static int s5p_mfc_stop_streaming(struct vb2_queue *q) | 1030 | static void s5p_mfc_stop_streaming(struct vb2_queue *q) |
1031 | { | 1031 | { |
1032 | unsigned long flags; | 1032 | unsigned long flags; |
1033 | struct s5p_mfc_ctx *ctx = fh_to_ctx(q->drv_priv); | 1033 | struct s5p_mfc_ctx *ctx = fh_to_ctx(q->drv_priv); |
@@ -1071,7 +1071,6 @@ static int s5p_mfc_stop_streaming(struct vb2_queue *q) | |||
1071 | } | 1071 | } |
1072 | if (aborted) | 1072 | if (aborted) |
1073 | ctx->state = MFCINST_RUNNING; | 1073 | ctx->state = MFCINST_RUNNING; |
1074 | return 0; | ||
1075 | } | 1074 | } |
1076 | 1075 | ||
1077 | 1076 | ||
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c index df83cd157bab..458279e5dc80 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | |||
@@ -1954,7 +1954,7 @@ static int s5p_mfc_start_streaming(struct vb2_queue *q, unsigned int count) | |||
1954 | return 0; | 1954 | return 0; |
1955 | } | 1955 | } |
1956 | 1956 | ||
1957 | static int s5p_mfc_stop_streaming(struct vb2_queue *q) | 1957 | static void s5p_mfc_stop_streaming(struct vb2_queue *q) |
1958 | { | 1958 | { |
1959 | unsigned long flags; | 1959 | unsigned long flags; |
1960 | struct s5p_mfc_ctx *ctx = fh_to_ctx(q->drv_priv); | 1960 | struct s5p_mfc_ctx *ctx = fh_to_ctx(q->drv_priv); |
@@ -1983,7 +1983,6 @@ static int s5p_mfc_stop_streaming(struct vb2_queue *q) | |||
1983 | ctx->src_queue_cnt = 0; | 1983 | ctx->src_queue_cnt = 0; |
1984 | } | 1984 | } |
1985 | spin_unlock_irqrestore(&dev->irqlock, flags); | 1985 | spin_unlock_irqrestore(&dev->irqlock, flags); |
1986 | return 0; | ||
1987 | } | 1986 | } |
1988 | 1987 | ||
1989 | static void s5p_mfc_buf_queue(struct vb2_buffer *vb) | 1988 | static void s5p_mfc_buf_queue(struct vb2_buffer *vb) |
diff --git a/drivers/media/platform/s5p-tv/mixer_video.c b/drivers/media/platform/s5p-tv/mixer_video.c index a1ce55fd30f3..9f1e52f0bd09 100644 --- a/drivers/media/platform/s5p-tv/mixer_video.c +++ b/drivers/media/platform/s5p-tv/mixer_video.c | |||
@@ -985,7 +985,7 @@ static void mxr_watchdog(unsigned long arg) | |||
985 | spin_unlock_irqrestore(&layer->enq_slock, flags); | 985 | spin_unlock_irqrestore(&layer->enq_slock, flags); |
986 | } | 986 | } |
987 | 987 | ||
988 | static int stop_streaming(struct vb2_queue *vq) | 988 | static void stop_streaming(struct vb2_queue *vq) |
989 | { | 989 | { |
990 | struct mxr_layer *layer = vb2_get_drv_priv(vq); | 990 | struct mxr_layer *layer = vb2_get_drv_priv(vq); |
991 | struct mxr_device *mdev = layer->mdev; | 991 | struct mxr_device *mdev = layer->mdev; |
@@ -1031,7 +1031,6 @@ static int stop_streaming(struct vb2_queue *vq) | |||
1031 | mxr_streamer_put(mdev); | 1031 | mxr_streamer_put(mdev); |
1032 | /* allow changes in output configuration */ | 1032 | /* allow changes in output configuration */ |
1033 | mxr_output_put(mdev); | 1033 | mxr_output_put(mdev); |
1034 | return 0; | ||
1035 | } | 1034 | } |
1036 | 1035 | ||
1037 | static struct vb2_ops mxr_video_qops = { | 1036 | static struct vb2_ops mxr_video_qops = { |
diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media/platform/soc_camera/atmel-isi.c index f0b6c900034d..38c723aca438 100644 --- a/drivers/media/platform/soc_camera/atmel-isi.c +++ b/drivers/media/platform/soc_camera/atmel-isi.c | |||
@@ -406,7 +406,7 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count) | |||
406 | } | 406 | } |
407 | 407 | ||
408 | /* abort streaming and wait for last buffer */ | 408 | /* abort streaming and wait for last buffer */ |
409 | static int stop_streaming(struct vb2_queue *vq) | 409 | static void stop_streaming(struct vb2_queue *vq) |
410 | { | 410 | { |
411 | struct soc_camera_device *icd = soc_camera_from_vb2q(vq); | 411 | struct soc_camera_device *icd = soc_camera_from_vb2q(vq); |
412 | struct soc_camera_host *ici = to_soc_camera_host(icd->parent); | 412 | struct soc_camera_host *ici = to_soc_camera_host(icd->parent); |
@@ -433,7 +433,7 @@ static int stop_streaming(struct vb2_queue *vq) | |||
433 | if (time_after(jiffies, timeout)) { | 433 | if (time_after(jiffies, timeout)) { |
434 | dev_err(icd->parent, | 434 | dev_err(icd->parent, |
435 | "Timeout waiting for finishing codec request\n"); | 435 | "Timeout waiting for finishing codec request\n"); |
436 | return -ETIMEDOUT; | 436 | return; |
437 | } | 437 | } |
438 | 438 | ||
439 | /* Disable interrupts */ | 439 | /* Disable interrupts */ |
@@ -444,8 +444,6 @@ static int stop_streaming(struct vb2_queue *vq) | |||
444 | ret = atmel_isi_wait_status(isi, WAIT_ISI_DISABLE); | 444 | ret = atmel_isi_wait_status(isi, WAIT_ISI_DISABLE); |
445 | if (ret < 0) | 445 | if (ret < 0) |
446 | dev_err(icd->parent, "Disable ISI timed out\n"); | 446 | dev_err(icd->parent, "Disable ISI timed out\n"); |
447 | |||
448 | return ret; | ||
449 | } | 447 | } |
450 | 448 | ||
451 | static struct vb2_ops isi_video_qops = { | 449 | static struct vb2_ops isi_video_qops = { |
diff --git a/drivers/media/platform/soc_camera/mx2_camera.c b/drivers/media/platform/soc_camera/mx2_camera.c index 3e844803bdca..b40bc2e5ba47 100644 --- a/drivers/media/platform/soc_camera/mx2_camera.c +++ b/drivers/media/platform/soc_camera/mx2_camera.c | |||
@@ -741,7 +741,7 @@ static int mx2_start_streaming(struct vb2_queue *q, unsigned int count) | |||
741 | return 0; | 741 | return 0; |
742 | } | 742 | } |
743 | 743 | ||
744 | static int mx2_stop_streaming(struct vb2_queue *q) | 744 | static void mx2_stop_streaming(struct vb2_queue *q) |
745 | { | 745 | { |
746 | struct soc_camera_device *icd = soc_camera_from_vb2q(q); | 746 | struct soc_camera_device *icd = soc_camera_from_vb2q(q); |
747 | struct soc_camera_host *ici = | 747 | struct soc_camera_host *ici = |
@@ -773,8 +773,6 @@ static int mx2_stop_streaming(struct vb2_queue *q) | |||
773 | 773 | ||
774 | dma_free_coherent(ici->v4l2_dev.dev, | 774 | dma_free_coherent(ici->v4l2_dev.dev, |
775 | pcdev->discard_size, b, pcdev->discard_buffer_dma); | 775 | pcdev->discard_size, b, pcdev->discard_buffer_dma); |
776 | |||
777 | return 0; | ||
778 | } | 776 | } |
779 | 777 | ||
780 | static struct vb2_ops mx2_videobuf_ops = { | 778 | static struct vb2_ops mx2_videobuf_ops = { |
diff --git a/drivers/media/platform/soc_camera/mx3_camera.c b/drivers/media/platform/soc_camera/mx3_camera.c index 9ed81ac6881c..83315dfeef62 100644 --- a/drivers/media/platform/soc_camera/mx3_camera.c +++ b/drivers/media/platform/soc_camera/mx3_camera.c | |||
@@ -406,7 +406,7 @@ static int mx3_videobuf_init(struct vb2_buffer *vb) | |||
406 | return 0; | 406 | return 0; |
407 | } | 407 | } |
408 | 408 | ||
409 | static int mx3_stop_streaming(struct vb2_queue *q) | 409 | static void mx3_stop_streaming(struct vb2_queue *q) |
410 | { | 410 | { |
411 | struct soc_camera_device *icd = soc_camera_from_vb2q(q); | 411 | struct soc_camera_device *icd = soc_camera_from_vb2q(q); |
412 | struct soc_camera_host *ici = to_soc_camera_host(icd->parent); | 412 | struct soc_camera_host *ici = to_soc_camera_host(icd->parent); |
@@ -430,8 +430,6 @@ static int mx3_stop_streaming(struct vb2_queue *q) | |||
430 | } | 430 | } |
431 | 431 | ||
432 | spin_unlock_irqrestore(&mx3_cam->lock, flags); | 432 | spin_unlock_irqrestore(&mx3_cam->lock, flags); |
433 | |||
434 | return 0; | ||
435 | } | 433 | } |
436 | 434 | ||
437 | static struct vb2_ops mx3_videobuf_ops = { | 435 | static struct vb2_ops mx3_videobuf_ops = { |
diff --git a/drivers/media/platform/soc_camera/rcar_vin.c b/drivers/media/platform/soc_camera/rcar_vin.c index 704eee766487..e594230e84d3 100644 --- a/drivers/media/platform/soc_camera/rcar_vin.c +++ b/drivers/media/platform/soc_camera/rcar_vin.c | |||
@@ -513,7 +513,7 @@ static int rcar_vin_videobuf_init(struct vb2_buffer *vb) | |||
513 | return 0; | 513 | return 0; |
514 | } | 514 | } |
515 | 515 | ||
516 | static int rcar_vin_stop_streaming(struct vb2_queue *vq) | 516 | static void rcar_vin_stop_streaming(struct vb2_queue *vq) |
517 | { | 517 | { |
518 | struct soc_camera_device *icd = soc_camera_from_vb2q(vq); | 518 | struct soc_camera_device *icd = soc_camera_from_vb2q(vq); |
519 | struct soc_camera_host *ici = to_soc_camera_host(icd->parent); | 519 | struct soc_camera_host *ici = to_soc_camera_host(icd->parent); |
@@ -524,8 +524,6 @@ static int rcar_vin_stop_streaming(struct vb2_queue *vq) | |||
524 | list_for_each_safe(buf_head, tmp, &priv->capture) | 524 | list_for_each_safe(buf_head, tmp, &priv->capture) |
525 | list_del_init(buf_head); | 525 | list_del_init(buf_head); |
526 | spin_unlock_irq(&priv->lock); | 526 | spin_unlock_irq(&priv->lock); |
527 | |||
528 | return 0; | ||
529 | } | 527 | } |
530 | 528 | ||
531 | static struct vb2_ops rcar_vin_vb2_ops = { | 529 | static struct vb2_ops rcar_vin_vb2_ops = { |
diff --git a/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c b/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c index 3e75a469cd49..20ad4a571d37 100644 --- a/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c +++ b/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c | |||
@@ -471,7 +471,7 @@ static int sh_mobile_ceu_videobuf_init(struct vb2_buffer *vb) | |||
471 | return 0; | 471 | return 0; |
472 | } | 472 | } |
473 | 473 | ||
474 | static int sh_mobile_ceu_stop_streaming(struct vb2_queue *q) | 474 | static void sh_mobile_ceu_stop_streaming(struct vb2_queue *q) |
475 | { | 475 | { |
476 | struct soc_camera_device *icd = container_of(q, struct soc_camera_device, vb2_vidq); | 476 | struct soc_camera_device *icd = container_of(q, struct soc_camera_device, vb2_vidq); |
477 | struct soc_camera_host *ici = to_soc_camera_host(icd->parent); | 477 | struct soc_camera_host *ici = to_soc_camera_host(icd->parent); |
@@ -487,7 +487,7 @@ static int sh_mobile_ceu_stop_streaming(struct vb2_queue *q) | |||
487 | 487 | ||
488 | spin_unlock_irq(&pcdev->lock); | 488 | spin_unlock_irq(&pcdev->lock); |
489 | 489 | ||
490 | return sh_mobile_ceu_soft_reset(pcdev); | 490 | sh_mobile_ceu_soft_reset(pcdev); |
491 | } | 491 | } |
492 | 492 | ||
493 | static struct vb2_ops sh_mobile_ceu_videobuf_ops = { | 493 | static struct vb2_ops sh_mobile_ceu_videobuf_ops = { |
diff --git a/drivers/media/platform/vivi.c b/drivers/media/platform/vivi.c index 3890f4f42a78..d00bf3df0f8a 100644 --- a/drivers/media/platform/vivi.c +++ b/drivers/media/platform/vivi.c | |||
@@ -906,12 +906,11 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count) | |||
906 | } | 906 | } |
907 | 907 | ||
908 | /* abort streaming and wait for last buffer */ | 908 | /* abort streaming and wait for last buffer */ |
909 | static int stop_streaming(struct vb2_queue *vq) | 909 | static void stop_streaming(struct vb2_queue *vq) |
910 | { | 910 | { |
911 | struct vivi_dev *dev = vb2_get_drv_priv(vq); | 911 | struct vivi_dev *dev = vb2_get_drv_priv(vq); |
912 | dprintk(dev, 1, "%s\n", __func__); | 912 | dprintk(dev, 1, "%s\n", __func__); |
913 | vivi_stop_generating(dev); | 913 | vivi_stop_generating(dev); |
914 | return 0; | ||
915 | } | 914 | } |
916 | 915 | ||
917 | static void vivi_lock(struct vb2_queue *vq) | 916 | static void vivi_lock(struct vb2_queue *vq) |
diff --git a/drivers/media/platform/vsp1/vsp1_video.c b/drivers/media/platform/vsp1/vsp1_video.c index b48f135ffc01..a0595c17700f 100644 --- a/drivers/media/platform/vsp1/vsp1_video.c +++ b/drivers/media/platform/vsp1/vsp1_video.c | |||
@@ -720,7 +720,7 @@ static int vsp1_video_start_streaming(struct vb2_queue *vq, unsigned int count) | |||
720 | return 0; | 720 | return 0; |
721 | } | 721 | } |
722 | 722 | ||
723 | static int vsp1_video_stop_streaming(struct vb2_queue *vq) | 723 | static void vsp1_video_stop_streaming(struct vb2_queue *vq) |
724 | { | 724 | { |
725 | struct vsp1_video *video = vb2_get_drv_priv(vq); | 725 | struct vsp1_video *video = vb2_get_drv_priv(vq); |
726 | struct vsp1_pipeline *pipe = to_vsp1_pipeline(&video->video.entity); | 726 | struct vsp1_pipeline *pipe = to_vsp1_pipeline(&video->video.entity); |
@@ -743,8 +743,6 @@ static int vsp1_video_stop_streaming(struct vb2_queue *vq) | |||
743 | spin_lock_irqsave(&video->irqlock, flags); | 743 | spin_lock_irqsave(&video->irqlock, flags); |
744 | INIT_LIST_HEAD(&video->irqqueue); | 744 | INIT_LIST_HEAD(&video->irqqueue); |
745 | spin_unlock_irqrestore(&video->irqlock, flags); | 745 | spin_unlock_irqrestore(&video->irqlock, flags); |
746 | |||
747 | return 0; | ||
748 | } | 746 | } |
749 | 747 | ||
750 | static struct vb2_ops vsp1_video_queue_qops = { | 748 | static struct vb2_ops vsp1_video_queue_qops = { |