Skip to content

Commit fba0909

Browse files
tititiou36Christoph Hellwig
authored and
Christoph Hellwig
committed
media: v4l2-pci-skeleton: Remove usage of the deprecated "pci-dma-compat.h" API
In [1], Christoph Hellwig has proposed to remove the wrappers in include/linux/pci-dma-compat.h. Some reasons why this API should be removed have been given by Julia Lawall in [2]. A coccinelle script has been used to perform the needed transformation. It can be found in [3]. [1]: https://lore.kernel.org/kernel-janitors/[email protected]/ [2]: https://lore.kernel.org/kernel-janitors/alpine.DEB.2.22.394.2007120902170.2424@hadrien/ [3]: https://lore.kernel.org/kernel-janitors/[email protected]/ Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 8c15567 commit fba0909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/v4l/v4l2-pci-skeleton.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ static int skeleton_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
766766
ret = pci_enable_device(pdev);
767767
if (ret)
768768
return ret;
769-
ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
769+
ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
770770
if (ret) {
771771
dev_err(&pdev->dev, "no suitable DMA available.\n");
772772
goto disable_pci;

0 commit comments

Comments
 (0)