diff options
-rw-r--r-- | drivers/media/video/cx23885/cx23885-core.c | 2 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-core.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/cx23885/cx23885-core.c b/drivers/media/video/cx23885/cx23885-core.c index 7f10b273598f..a77505daaed2 100644 --- a/drivers/media/video/cx23885/cx23885-core.c +++ b/drivers/media/video/cx23885/cx23885-core.c | |||
@@ -952,7 +952,7 @@ void cx23885_free_buffer(struct videobuf_queue *q, struct cx23885_buffer *buf) | |||
952 | videobuf_waiton(&buf->vb, 0, 0); | 952 | videobuf_waiton(&buf->vb, 0, 0); |
953 | videobuf_dma_unmap(q, dma); | 953 | videobuf_dma_unmap(q, dma); |
954 | videobuf_dma_free(dma); | 954 | videobuf_dma_free(dma); |
955 | btcx_riscmem_free((struct pci_dev *)q->dev, &buf->risc); | 955 | btcx_riscmem_free(to_pci_dev(q->dev), &buf->risc); |
956 | buf->vb.state = VIDEOBUF_NEEDS_INIT; | 956 | buf->vb.state = VIDEOBUF_NEEDS_INIT; |
957 | } | 957 | } |
958 | 958 | ||
diff --git a/drivers/media/video/cx88/cx88-core.c b/drivers/media/video/cx88/cx88-core.c index 12440b91e4b3..75b581048f6e 100644 --- a/drivers/media/video/cx88/cx88-core.c +++ b/drivers/media/video/cx88/cx88-core.c | |||
@@ -219,7 +219,7 @@ cx88_free_buffer(struct videobuf_queue *q, struct cx88_buffer *buf) | |||
219 | videobuf_waiton(&buf->vb,0,0); | 219 | videobuf_waiton(&buf->vb,0,0); |
220 | videobuf_dma_unmap(q, dma); | 220 | videobuf_dma_unmap(q, dma); |
221 | videobuf_dma_free(dma); | 221 | videobuf_dma_free(dma); |
222 | btcx_riscmem_free((struct pci_dev *)q->dev, &buf->risc); | 222 | btcx_riscmem_free(to_pci_dev(q->dev), &buf->risc); |
223 | buf->vb.state = VIDEOBUF_NEEDS_INIT; | 223 | buf->vb.state = VIDEOBUF_NEEDS_INIT; |
224 | } | 224 | } |
225 | 225 | ||