Commit a920e42f61bdfe9974f3e2f3715d3a6d319eeaba

Authored by Guennadi Liakhovetski
Committed by Mauro Carvalho Chehab
1 parent 33b4af918a

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>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

drivers/media/video/cx23885/cx23885-core.c
... ... @@ -952,7 +952,7 @@
952 952 videobuf_waiton(&buf->vb, 0, 0);
953 953 videobuf_dma_unmap(q, dma);
954 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 956 buf->vb.state = VIDEOBUF_NEEDS_INIT;
957 957 }
958 958  
drivers/media/video/cx88/cx88-core.c
... ... @@ -219,7 +219,7 @@
219 219 videobuf_waiton(&buf->vb,0,0);
220 220 videobuf_dma_unmap(q, dma);
221 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 223 buf->vb.state = VIDEOBUF_NEEDS_INIT;
224 224 }
225 225