diff --git a/mt7603/pci.c b/mt7603/pci.c index aa6cb668..3d94cdb4 100644 --- a/mt7603/pci.c +++ b/mt7603/pci.c @@ -28,7 +28,7 @@ mt76pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) pci_set_master(pdev); - ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); + ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); if (ret) return ret; diff --git a/mt7615/pci.c b/mt7615/pci.c index 11f169cd..7a54ea6a 100644 --- a/mt7615/pci.c +++ b/mt7615/pci.c @@ -39,7 +39,7 @@ static int mt7615_pci_probe(struct pci_dev *pdev, if (ret < 0) return ret; - ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); + ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); if (ret) goto error; diff --git a/mt76x0/pci.c b/mt76x0/pci.c index b795e724..92ddb8c6 100644 --- a/mt76x0/pci.c +++ b/mt76x0/pci.c @@ -176,7 +176,7 @@ mt76x0e_probe(struct pci_dev *pdev, const struct pci_device_id *id) pci_set_master(pdev); - ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); + ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); if (ret) return ret; diff --git a/mt76x2/pci.c b/mt76x2/pci.c index adf288e5..fb8de183 100644 --- a/mt76x2/pci.c +++ b/mt76x2/pci.c @@ -47,7 +47,7 @@ mt76x2e_probe(struct pci_dev *pdev, const struct pci_device_id *id) pci_set_master(pdev); - ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); + ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); if (ret) return ret; diff --git a/mt7915/pci.c b/mt7915/pci.c index e5a3f0dd..0af4cdb8 100644 --- a/mt7915/pci.c +++ b/mt7915/pci.c @@ -250,7 +250,7 @@ static int mt7915_pci_probe(struct pci_dev *pdev, pci_set_master(pdev); - ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); + ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); if (ret) return ret; diff --git a/mt7921/pci.c b/mt7921/pci.c index cd710360..44075f8f 100644 --- a/mt7921/pci.c +++ b/mt7921/pci.c @@ -132,7 +132,7 @@ static int mt7921_pci_probe(struct pci_dev *pdev, if (ret < 0) return ret; - ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); + ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); if (ret) goto err_free_pci_vec;