dmaengine: dw: switch from 'pci_' to 'dma_' API
[linux-2.6-microblaze.git] / drivers / dma / dw / pci.c
index 26a3f92..ad2d4d0 100644 (file)
@@ -32,11 +32,7 @@ static int dw_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid)
        pci_set_master(pdev);
        pci_try_set_mwi(pdev);
 
-       ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
-       if (ret)
-               return ret;
-
-       ret = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
+       ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
        if (ret)
                return ret;