diff options
author | Christoph Hellwig <hch@lst.de> | 2018-10-09 10:08:24 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2018-10-10 16:47:00 -0400 |
commit | b0da3498c587c20e64799c4c7ba65a31314b2182 (patch) | |
tree | aef8d2ed69436c93648a53049b8e99537cbec98b /include/linux/pci-dma-compat.h | |
parent | a6f44cf9f5cc60471cf06f3d5391fc6041eb37a5 (diff) |
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.h | 9 |
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) | |||
119 | { | 119 | { |
120 | return dma_set_coherent_mask(&dev->dev, mask); | 120 | return dma_set_coherent_mask(&dev->dev, mask); |
121 | } | 121 | } |
122 | |||
123 | static inline int pci_set_dma_max_seg_size(struct pci_dev *dev, | ||
124 | unsigned int size) | ||
125 | { | ||
126 | return dma_set_max_seg_size(&dev->dev, size); | ||
127 | } | ||
128 | #else | 122 | #else |
129 | static inline int pci_set_dma_mask(struct pci_dev *dev, u64 mask) | 123 | static inline int pci_set_dma_mask(struct pci_dev *dev, u64 mask) |
130 | { return -EIO; } | 124 | { return -EIO; } |
131 | static inline int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask) | 125 | static inline int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask) |
132 | { return -EIO; } | 126 | { return -EIO; } |
133 | static inline int pci_set_dma_max_seg_size(struct pci_dev *dev, | ||
134 | unsigned int size) | ||
135 | { return -EIO; } | ||
136 | #endif | 127 | #endif |
137 | 128 | ||
138 | #endif | 129 | #endif |