mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 11:02:31 +02:00
Use dma_set_coherent_mask() instead of pci_set_consistent_dma_mask()
Kernels v5.18+ needs dma_set_coherent_mask() Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
This commit is contained in:
@@ -396,7 +396,11 @@ static int fthd_pci_init(struct fthd_private *dev_priv)
|
||||
goto fail_irq;
|
||||
|
||||
dev_info(&pdev->dev, "Setting %ubit DMA mask\n", dev_priv->dma_mask);
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
|
||||
pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(dev_priv->dma_mask));
|
||||
#else
|
||||
dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(dev_priv->dma_mask));
|
||||
#endif
|
||||
|
||||
pci_set_master(pdev);
|
||||
pci_set_drvdata(pdev, dev_priv);
|
||||
|
||||
Reference in New Issue
Block a user