Skip to content

Commit bec897e

Browse files
Qing Wangvinodkoul
authored andcommitted
dmaengine: hsu: 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 d77143d commit bec897e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/dma/hsu/pci.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ static int hsu_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
6565
pci_set_master(pdev);
6666
pci_try_set_mwi(pdev);
6767

68-
ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
69-
if (ret)
70-
return ret;
71-
72-
ret = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
68+
ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
7369
if (ret)
7470
return ret;
7571

0 commit comments

Comments
 (0)