summaryrefslogtreecommitdiff
path: root/include/linux/pci-dma-compat.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-10-09 17:08:24 +0300
committerBjorn Helgaas <bhelgaas@google.com>2018-10-10 23:47:00 +0300
commitb0da3498c587c20e64799c4c7ba65a31314b2182 (patch)
treeaef8d2ed69436c93648a53049b8e99537cbec98b /include/linux/pci-dma-compat.h
parenta6f44cf9f5cc60471cf06f3d5391fc6041eb37a5 (diff)
downloadlinux-b0da3498c587c20e64799c4c7ba65a31314b2182.tar.xz
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 'include/linux/pci-dma-compat.h')
-rw-r--r--include/linux/pci-dma-compat.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/pci-dma-compat.h b/include/linux/pci-dma-compat.h
index 558a109ab497..cb1adf0b78a9 100644
--- a/include/linux/pci-dma-compat.h
+++ b/include/linux/pci-dma-compat.h
@@ -119,20 +119,11 @@ static inline int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask)
{
return dma_set_coherent_mask(&dev->dev, mask);
}
-
-static inline int pci_set_dma_max_seg_size(struct pci_dev *dev,
- unsigned int size)
-{
- return dma_set_max_seg_size(&dev->dev, size);
-}
#else
static inline int pci_set_dma_mask(struct pci_dev *dev, u64 mask)
{ return -EIO; }
static inline int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask)
{ return -EIO; }
-static inline int pci_set_dma_max_seg_size(struct pci_dev *dev,
- unsigned int size)
-{ return -EIO; }
#endif
#endif