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>
This commit is contained in:

committed by
Jens Axboe

parent
dcc02c19cc
commit
b5e5555618
@@ -1230,10 +1230,7 @@ static int pdc_ata_init_one(struct pci_dev *pdev,
|
||||
/* initialize adapter */
|
||||
pdc_host_init(host);
|
||||
|
||||
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;
|
||||
|
||||
|
Reference in New Issue
Block a user