scsi: sym53c8xx: use dma_set_mask
authorChristoph Hellwig <hch@lst.de>
Thu, 18 Oct 2018 13:10:24 +0000 (15:10 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 15 Nov 2018 19:27:08 +0000 (14:27 -0500)
The driver currently uses pci_set_dma_mask despite otherwise using the
generic DMA API.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sym53c8xx_2/sym_glue.c

index 5f10aa9bad9bb9b14b61f2c5900791bee2e880c4..6e9b54061d7ee1bd78b946e5dabd01e8692dc597 100644 (file)
@@ -1312,9 +1312,9 @@ static struct Scsi_Host *sym_attach(struct scsi_host_template *tpnt, int unit,
        sprintf(np->s.inst_name, "sym%d", np->s.unit);
 
        if ((SYM_CONF_DMA_ADDRESSING_MODE > 0) && (np->features & FE_DAC) &&
-                       !pci_set_dma_mask(pdev, DMA_DAC_MASK)) {
+                       !dma_set_mask(&pdev->dev, DMA_DAC_MASK)) {
                set_dac(np);
-       } else if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
+       } else if (dma_set_mask(&pdev->dev, DMA_BIT_MASK(32))) {
                printf_warning("%s: No suitable DMA available\n", sym_name(np));
                goto attach_failed;
        }