summaryrefslogtreecommitdiff
path: root/drivers/ata/pata_ninja32.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-08-26 13:57:25 +0300
committerJens Axboe <axboe@kernel.dk>2019-08-26 22:58:59 +0300
commitb5e55556182d2e43da035df1bffbd492c72a7994 (patch)
tree53f0636e32e98fa861650e8b4378227c7dd21481 /drivers/ata/pata_ninja32.c
parentdcc02c19cc06bd7bc1b6db0aa0087a2b6eb05b94 (diff)
downloadlinux-b5e55556182d2e43da035df1bffbd492c72a7994.tar.xz
libata: switch remaining drivers to use dma_set_mask_and_coherent
Use dma_set_mask_and_coherent instead of separate dma_set_mask and dma_set_coherent_mask calls. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ata/pata_ninja32.c')
-rw-r--r--drivers/ata/pata_ninja32.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ata/pata_ninja32.c b/drivers/ata/pata_ninja32.c
index 607db1f05f9a..f9255d6fd194 100644
--- a/drivers/ata/pata_ninja32.c
+++ b/drivers/ata/pata_ninja32.c
@@ -123,10 +123,7 @@ static int ninja32_init_one(struct pci_dev *dev, const struct pci_device_id *id)
return rc;
host->iomap = pcim_iomap_table(dev);
- rc = dma_set_mask(&dev->dev, ATA_DMA_MASK);
- if (rc)
- return rc;
- rc = dma_set_coherent_mask(&dev->dev, ATA_DMA_MASK);
+ rc = dma_set_mask_and_coherent(&dev->dev, ATA_DMA_MASK);
if (rc)
return rc;
pci_set_master(dev);