diff options
author | Christoph Hellwig <hch@lst.de> | 2019-08-26 12:57:25 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-08-26 13:58:59 -0600 |
commit | b5e55556182d2e43da035df1bffbd492c72a7994 (patch) | |
tree | 53f0636e32e98fa861650e8b4378227c7dd21481 /drivers/ata/sata_sx4.c | |
parent | dcc02c19cc06bd7bc1b6db0aa0087a2b6eb05b94 (diff) | |
download | linux-b5e55556182d2e43da035df1bffbd492c72a7994.tar.bz2 |
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/sata_sx4.c')
-rw-r--r-- | drivers/ata/sata_sx4.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ata/sata_sx4.c b/drivers/ata/sata_sx4.c index ae8e374d0a77..2277ba0c9c7f 100644 --- a/drivers/ata/sata_sx4.c +++ b/drivers/ata/sata_sx4.c @@ -1470,10 +1470,7 @@ static int pdc_sata_init_one(struct pci_dev *pdev, } /* configure and activate */ - rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); - if (rc) - return rc; - rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); + rc = dma_set_mask_and_coherent(&pdev->dev, ATA_DMA_MASK); if (rc) return rc; |