Skip to content

Commit

Permalink
dmaengine: hisi_dma: switch from 'pci_' to 'dma_' API
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Qing Wang authored and vinodkoul committed Oct 26, 2021
1 parent 1365e11 commit d77143d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/dma/hisi_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,11 +519,7 @@ static int hisi_dma_probe(struct pci_dev *pdev, const struct pci_device_id *id)
return ret;
}

ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
if (ret)
return ret;

ret = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
if (ret)
return ret;

Expand Down

0 comments on commit d77143d

Please sign in to comment.