summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-10-09 16:08:24 +0200
committerBjorn Helgaas <bhelgaas@google.com>2018-10-10 15:47:00 -0500
commitb0da3498c587c20e64799c4c7ba65a31314b2182 (patch)
treeaef8d2ed69436c93648a53049b8e99537cbec98b /drivers/scsi/aacraid
parenta6f44cf9f5cc60471cf06f3d5391fc6041eb37a5 (diff)
downloadblackbird-op-linux-b0da3498c587c20e64799c4c7ba65a31314b2182.tar.gz
blackbird-op-linux-b0da3498c587c20e64799c4c7ba65a31314b2182.zip
PCI: Remove pci_set_dma_max_seg_size()
The few callers can just use dma_set_max_seg_size ()directly. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/scsi/aacraid')
-rw-r--r--drivers/scsi/aacraid/linit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
index 04443577d48b..53eb2e9569b9 100644
--- a/drivers/scsi/aacraid/linit.c
+++ b/drivers/scsi/aacraid/linit.c
@@ -1747,7 +1747,7 @@ static int aac_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
shost->max_sectors = (shost->sg_tablesize * 8) + 112;
}
- error = pci_set_dma_max_seg_size(pdev,
+ error = dma_set_max_seg_size(&pdev->dev,
(aac->adapter_info.options & AAC_OPT_NEW_COMM) ?
(shost->max_sectors << 9) : 65536);
if (error)
OpenPOWER on IntegriCloud