aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/platform/atmel/atmel-isi.c')
-rw-r--r--drivers/media/platform/atmel/atmel-isi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/atmel/atmel-isi.c b/drivers/media/platform/atmel/atmel-isi.c
index e8db4df1e7c4..1a0e5233ae28 100644
--- a/drivers/media/platform/atmel/atmel-isi.c
+++ b/drivers/media/platform/atmel/atmel-isi.c
@@ -496,7 +496,7 @@ static void stop_streaming(struct vb2_queue *vq)
496 spin_unlock_irq(&isi->irqlock); 496 spin_unlock_irq(&isi->irqlock);
497 497
498 if (!isi->enable_preview_path) { 498 if (!isi->enable_preview_path) {
499 timeout = jiffies + FRAME_INTERVAL_MILLI_SEC * HZ; 499 timeout = jiffies + (FRAME_INTERVAL_MILLI_SEC * HZ) / 1000;
500 /* Wait until the end of the current frame. */ 500 /* Wait until the end of the current frame. */
501 while ((isi_readl(isi, ISI_STATUS) & ISI_CTRL_CDC) && 501 while ((isi_readl(isi, ISI_STATUS) & ISI_CTRL_CDC) &&
502 time_before(jiffies, timeout)) 502 time_before(jiffies, timeout))