Messages in this thread Patch in this message | | | Subject | Re: [PATCH] PCI fixes for 2.6.9 | Date | Tue, 19 Oct 2004 15:42:19 -0700 | From | Greg KH <> |
| |
ChangeSet 1.1997.37.58, 2004/10/06 14:00:18-07:00, greg@kroah.com
[PATCH] PCI: remove all usages of pci_dma_sync_sg as it's obsolete.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/scsi/megaraid/megaraid_mbox.c | 4 ++-- include/linux/pci.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-)
diff -Nru a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c --- a/drivers/scsi/megaraid/megaraid_mbox.c 2004-10-19 15:22:22 -07:00 +++ b/drivers/scsi/megaraid/megaraid_mbox.c 2004-10-19 15:22:22 -07:00 @@ -1559,7 +1559,7 @@ 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 @@ 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); } diff -Nru a/include/linux/pci.h b/include/linux/pci.h --- a/include/linux/pci.h 2004-10-19 15:22:22 -07:00 +++ b/include/linux/pci.h 2004-10-19 15:22:22 -07:00 @@ -860,7 +860,6 @@ /* 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |