Commit 605fda94 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove all usages of pci_dma_sync_sg as it's obsolete.

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 88e0d40a
......@@ -1559,7 +1559,7 @@ mbox_post_cmd(adapter_t *adapter, scb_t *scb)
PCI_DMA_TODEVICE);
}
else {
pci_dma_sync_sg(adapter->pdev, scb->scp->request_buffer,
pci_dma_sync_sg_for_cpu(adapter->pdev, scb->scp->request_buffer,
scb->scp->use_sg, PCI_DMA_TODEVICE);
}
}
......@@ -2345,7 +2345,7 @@ megaraid_mbox_sync_scb(adapter_t *adapter, scb_t *scb)
case MRAID_DMA_WSG:
if (scb->dma_direction == PCI_DMA_FROMDEVICE) {
pci_dma_sync_sg(adapter->pdev,
pci_dma_sync_sg_for_cpu(adapter->pdev,
scb->scp->request_buffer,
scb->scp->use_sg, PCI_DMA_FROMDEVICE);
}
......
......@@ -860,7 +860,6 @@ extern void msi_remove_pci_irq_vectors(struct pci_dev *dev);
/* Backwards compat, remove in 2.7.x */
#define pci_dma_sync_single pci_dma_sync_single_for_cpu
#define pci_dma_sync_sg pci_dma_sync_sg_for_cpu
/*
* If the system does not have PCI, clearly these return errors. Define
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment