diff options
author | Christoph Hellwig <hch@lst.de> | 2018-10-09 10:08:23 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2018-10-10 16:46:47 -0400 |
commit | a6f44cf9f5cc60471cf06f3d5391fc6041eb37a5 (patch) | |
tree | 1b7f35899fde28aa1122e5be820ad887875834ab /include/linux/pci-dma-compat.h | |
parent | 18b01b16e8bae9cd227909f6e6d2783d74855f65 (diff) |
PCI: Remove pci_set_dma_seg_boundary()
The two callers can just use dma_set_seg_boundary() 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 c3f1b44ade29..558a109ab497 100644 --- a/include/linux/pci-dma-compat.h +++ b/include/linux/pci-dma-compat.h | |||
@@ -125,12 +125,6 @@ static inline int pci_set_dma_max_seg_size(struct pci_dev *dev, | |||
125 | { | 125 | { |
126 | return dma_set_max_seg_size(&dev->dev, size); | 126 | return dma_set_max_seg_size(&dev->dev, size); |
127 | } | 127 | } |
128 | |||
129 | static inline int pci_set_dma_seg_boundary(struct pci_dev *dev, | ||
130 | unsigned long mask) | ||
131 | { | ||
132 | return dma_set_seg_boundary(&dev->dev, mask); | ||
133 | } | ||
134 | #else | 128 | #else |
135 | static inline int pci_set_dma_mask(struct pci_dev *dev, u64 mask) | 129 | static inline int pci_set_dma_mask(struct pci_dev *dev, u64 mask) |
136 | { return -EIO; } | 130 | { return -EIO; } |
@@ -139,9 +133,6 @@ static inline int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask) | |||
139 | static inline int pci_set_dma_max_seg_size(struct pci_dev *dev, | 133 | static inline int pci_set_dma_max_seg_size(struct pci_dev *dev, |
140 | unsigned int size) | 134 | unsigned int size) |
141 | { return -EIO; } | 135 | { return -EIO; } |
142 | static inline int pci_set_dma_seg_boundary(struct pci_dev *dev, | ||
143 | unsigned long mask) | ||
144 | { return -EIO; } | ||
145 | #endif | 136 | #endif |
146 | 137 | ||
147 | #endif | 138 | #endif |