Skip to content

Commit 1365e11

Browse files
Qing Wangvinodkoul
authored andcommitted
dmaengine: dw: 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]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent ecb8c88 commit 1365e11

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/dma/dw/pci.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ static int dw_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid)
3232
pci_set_master(pdev);
3333
pci_try_set_mwi(pdev);
3434

35-
ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
36-
if (ret)
37-
return ret;
38-
39-
ret = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
35+
ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
4036
if (ret)
4137
return ret;
4238

0 commit comments

Comments
 (0)