diff options
Diffstat (limited to 'drivers/ata/libata-sff.c')
-rw-r--r-- | drivers/ata/libata-sff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index 2e86e3b85266..cdf6215a9a22 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c | |||
@@ -3220,11 +3220,11 @@ void ata_pci_bmdma_init(struct ata_host *host) | |||
3220 | * ->sff_irq_clear method. Try to initialize bmdma_addr | 3220 | * ->sff_irq_clear method. Try to initialize bmdma_addr |
3221 | * regardless of dma masks. | 3221 | * regardless of dma masks. |
3222 | */ | 3222 | */ |
3223 | rc = pci_set_dma_mask(pdev, ATA_DMA_MASK); | 3223 | rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); |
3224 | if (rc) | 3224 | if (rc) |
3225 | ata_bmdma_nodma(host, "failed to set dma mask"); | 3225 | ata_bmdma_nodma(host, "failed to set dma mask"); |
3226 | if (!rc) { | 3226 | if (!rc) { |
3227 | rc = pci_set_consistent_dma_mask(pdev, ATA_DMA_MASK); | 3227 | rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); |
3228 | if (rc) | 3228 | if (rc) |
3229 | ata_bmdma_nodma(host, | 3229 | ata_bmdma_nodma(host, |
3230 | "failed to set consistent dma mask"); | 3230 | "failed to set consistent dma mask"); |