Skip to content

Commit d77143d

Browse files
Qing Wangvinodkoul
authored andcommitted
dmaengine: hisi_dma: switch from 'pci_' to 'dma_' API
The wrappers in include/linux/pci-dma-compat.h should go away. pci_set_dma_mask()/pci_set_consistent_dma_mask() should be replaced with dma_set_mask()/dma_set_coherent_mask(), and use dma_set_mask_and_coherent() for both. Signed-off-by: Qing Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 1365e11 commit d77143d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/dma/hisi_dma.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -519,11 +519,7 @@ static int hisi_dma_probe(struct pci_dev *pdev, const struct pci_device_id *id)
519519
return ret;
520520
}
521521

522-
ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
523-
if (ret)
524-
return ret;
525-
526-
ret = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
522+
ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
527523
if (ret)
528524
return ret;
529525

0 commit comments

Comments
 (0)