mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 23:51:46 +00:00
V4L/DVB (7374): Fix left-overs from the videobuf-dma-sg.c conversion to generic DMA
The dev element of the struct videobuf_queue is now of type struct device implicitly. Fix left-over casts. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de> Reviewed-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
33b4af918a
commit
a920e42f61
@ -952,7 +952,7 @@ void cx23885_free_buffer(struct videobuf_queue *q, struct cx23885_buffer *buf)
|
||||
videobuf_waiton(&buf->vb, 0, 0);
|
||||
videobuf_dma_unmap(q, dma);
|
||||
videobuf_dma_free(dma);
|
||||
btcx_riscmem_free((struct pci_dev *)q->dev, &buf->risc);
|
||||
btcx_riscmem_free(to_pci_dev(q->dev), &buf->risc);
|
||||
buf->vb.state = VIDEOBUF_NEEDS_INIT;
|
||||
}
|
||||
|
||||
|
@ -219,7 +219,7 @@ cx88_free_buffer(struct videobuf_queue *q, struct cx88_buffer *buf)
|
||||
videobuf_waiton(&buf->vb,0,0);
|
||||
videobuf_dma_unmap(q, dma);
|
||||
videobuf_dma_free(dma);
|
||||
btcx_riscmem_free((struct pci_dev *)q->dev, &buf->risc);
|
||||
btcx_riscmem_free(to_pci_dev(q->dev), &buf->risc);
|
||||
buf->vb.state = VIDEOBUF_NEEDS_INIT;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user