diff options
author | Christoph Hellwig <hch@lst.de> | 2019-08-26 13:57:25 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-08-26 22:58:59 +0300 |
commit | b5e55556182d2e43da035df1bffbd492c72a7994 (patch) | |
tree | 53f0636e32e98fa861650e8b4378227c7dd21481 /drivers/ata/pata_cs5520.c | |
parent | dcc02c19cc06bd7bc1b6db0aa0087a2b6eb05b94 (diff) | |
download | linux-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_cs5520.c')
-rw-r--r-- | drivers/ata/pata_cs5520.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/ata/pata_cs5520.c b/drivers/ata/pata_cs5520.c index 099a5c68a4c9..9052148b306d 100644 --- a/drivers/ata/pata_cs5520.c +++ b/drivers/ata/pata_cs5520.c @@ -155,14 +155,10 @@ static int cs5520_init_one(struct pci_dev *pdev, const struct pci_device_id *id) return -ENODEV; } - if (dma_set_mask(&pdev->dev, DMA_BIT_MASK(32))) { + if (dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32))) { printk(KERN_ERR DRV_NAME ": unable to configure DMA mask.\n"); return -ENODEV; } - if (dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32))) { - printk(KERN_ERR DRV_NAME ": unable to configure consistent DMA mask.\n"); - return -ENODEV; - } /* Map IO ports and initialize host accordingly */ iomap[0] = devm_ioport_map(&pdev->dev, cmd_port[0], 8); |