aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/omap24xxcam.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/omap24xxcam.c')
-rw-r--r--drivers/media/video/omap24xxcam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/omap24xxcam.c b/drivers/media/video/omap24xxcam.c
index ce76d952e161..f85b2ed8a2d8 100644
--- a/drivers/media/video/omap24xxcam.c
+++ b/drivers/media/video/omap24xxcam.c
@@ -452,8 +452,8 @@ static int omap24xxcam_vbq_setup(struct videobuf_queue *vbq, unsigned int *cnt,
452 *size = fh->pix.sizeimage; 452 *size = fh->pix.sizeimage;
453 453
454 /* accessing fh->cam->capture_mem is ok, it's constant */ 454 /* accessing fh->cam->capture_mem is ok, it's constant */
455 while (*size * *cnt > fh->cam->capture_mem) 455 if (*size * *cnt > fh->cam->capture_mem)
456 (*cnt)--; 456 *cnt = fh->cam->capture_mem / *size;
457 457
458 return 0; 458 return 0;
459} 459}