diff options
Diffstat (limited to 'drivers/ata/sata_inic162x.c')
-rw-r--r-- | drivers/ata/sata_inic162x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/sata_inic162x.c b/drivers/ata/sata_inic162x.c index 069827826b20..e81a8217f1ff 100644 --- a/drivers/ata/sata_inic162x.c +++ b/drivers/ata/sata_inic162x.c | |||
@@ -856,13 +856,13 @@ static int inic_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
856 | } | 856 | } |
857 | 857 | ||
858 | /* Set dma_mask. This devices doesn't support 64bit addressing. */ | 858 | /* Set dma_mask. This devices doesn't support 64bit addressing. */ |
859 | rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); | 859 | rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); |
860 | if (rc) { | 860 | if (rc) { |
861 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); | 861 | dev_err(&pdev->dev, "32-bit DMA enable failed\n"); |
862 | return rc; | 862 | return rc; |
863 | } | 863 | } |
864 | 864 | ||
865 | rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); | 865 | rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); |
866 | if (rc) { | 866 | if (rc) { |
867 | dev_err(&pdev->dev, "32-bit consistent DMA enable failed\n"); | 867 | dev_err(&pdev->dev, "32-bit consistent DMA enable failed\n"); |
868 | return rc; | 868 | return rc; |