]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/ata/sata_inic162x.c
libata: switch remaining drivers to use dma_set_mask_and_coherent
[linux.git] / drivers / ata / sata_inic162x.c
index 790968497dfe86cd234c860b9eacf5b6683d615e..7f99e23bff88c31e02938ca8fd85bb10ef33cea8 100644 (file)
@@ -862,18 +862,12 @@ static int inic_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
        }
 
        /* Set dma_mask.  This devices doesn't support 64bit addressing. */
-       rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
+       rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
        if (rc) {
                dev_err(&pdev->dev, "32-bit DMA enable failed\n");
                return rc;
        }
 
-       rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32));
-       if (rc) {
-               dev_err(&pdev->dev, "32-bit consistent DMA enable failed\n");
-               return rc;
-       }
-
        rc = init_controller(hpriv->mmio_base, hpriv->cached_hctl);
        if (rc) {
                dev_err(&pdev->dev, "failed to initialize controller\n");