aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88/cx88-vbi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx88/cx88-vbi.c')
-rw-r--r--drivers/media/video/cx88/cx88-vbi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/video/cx88/cx88-vbi.c b/drivers/media/video/cx88/cx88-vbi.c
index aa40505c4b3..babb0855640 100644
--- a/drivers/media/video/cx88/cx88-vbi.c
+++ b/drivers/media/video/cx88/cx88-vbi.c
@@ -99,7 +99,6 @@ int cx8800_restart_vbi_queue(struct cx8800_dev *dev,
99 struct cx88_dmaqueue *q) 99 struct cx88_dmaqueue *q)
100{ 100{
101 struct cx88_buffer *buf; 101 struct cx88_buffer *buf;
102 struct list_head *item;
103 102
104 if (list_empty(&q->active)) 103 if (list_empty(&q->active))
105 return 0; 104 return 0;
@@ -108,10 +107,8 @@ int cx8800_restart_vbi_queue(struct cx8800_dev *dev,
108 dprintk(2,"restart_queue [%p/%d]: restart dma\n", 107 dprintk(2,"restart_queue [%p/%d]: restart dma\n",
109 buf, buf->vb.i); 108 buf, buf->vb.i);
110 cx8800_start_vbi_dma(dev, q, buf); 109 cx8800_start_vbi_dma(dev, q, buf);
111 list_for_each(item,&q->active) { 110 list_for_each_entry(buf, &q->active, vb.queue)
112 buf = list_entry(item, struct cx88_buffer, vb.queue);
113 buf->count = q->count++; 111 buf->count = q->count++;
114 }
115 mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT); 112 mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT);
116 return 0; 113 return 0;
117} 114}