diff options
Diffstat (limited to 'drivers/media/video/cx18/cx18-queue.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-queue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/cx18/cx18-queue.c b/drivers/media/video/cx18/cx18-queue.c index a33ba04a2686..48976833e238 100644 --- a/drivers/media/video/cx18/cx18-queue.c +++ b/drivers/media/video/cx18/cx18-queue.c | |||
@@ -170,6 +170,7 @@ int cx18_stream_alloc(struct cx18_stream *s) | |||
170 | } | 170 | } |
171 | buf->id = cx->buffer_id++; | 171 | buf->id = cx->buffer_id++; |
172 | INIT_LIST_HEAD(&buf->list); | 172 | INIT_LIST_HEAD(&buf->list); |
173 | /* FIXME - check for mmio */ | ||
173 | buf->dma_handle = pci_map_single(s->cx->dev, | 174 | buf->dma_handle = pci_map_single(s->cx->dev, |
174 | buf->buf, s->buf_size, s->dma); | 175 | buf->buf, s->buf_size, s->dma); |
175 | cx18_buf_sync_for_cpu(s, buf); | 176 | cx18_buf_sync_for_cpu(s, buf); |
@@ -193,6 +194,7 @@ void cx18_stream_free(struct cx18_stream *s) | |||
193 | 194 | ||
194 | /* empty q_free */ | 195 | /* empty q_free */ |
195 | while ((buf = cx18_dequeue(s, &s->q_free))) { | 196 | while ((buf = cx18_dequeue(s, &s->q_free))) { |
197 | /* FIXME - check for mmio */ | ||
196 | pci_unmap_single(s->cx->dev, buf->dma_handle, | 198 | pci_unmap_single(s->cx->dev, buf->dma_handle, |
197 | s->buf_size, s->dma); | 199 | s->buf_size, s->dma); |
198 | kfree(buf->buf); | 200 | kfree(buf->buf); |