diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2010-07-12 02:59:11 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-07-30 12:29:36 -0400 |
commit | bfb51cd01661136bae1dd00c32d504cff6a9f924 (patch) | |
tree | 0fa29f7e27f6bac5741b6dad123759481ced5847 /drivers/pci | |
parent | 253d2e549818f5a4a52e2db0aba3dacee21e5b38 (diff) |
PCI: remove unused HAVE_ARCH_PCI_SET_DMA_MAX_SEGMENT_{SIZE|BOUNDARY}
In 2.6.34, we transformed the PCI DMA API into the generic device
mode. The PCI DMA API is just the wrapper of the DMA API.
So we don't need HAVE_ARCH_PCI_SET_DMA_MAX_SEGMENT_SIZE or
HAVE_ARCH_PCI_SET_DMA_SEGMENT_BOUNDARY (which enable architectures to
have the own implementations). Both haven't been used anyway.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 740fb4ea9669..9afad0faa9b6 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -2294,21 +2294,17 @@ void pci_msi_off(struct pci_dev *dev) | |||
2294 | } | 2294 | } |
2295 | EXPORT_SYMBOL_GPL(pci_msi_off); | 2295 | EXPORT_SYMBOL_GPL(pci_msi_off); |
2296 | 2296 | ||
2297 | #ifndef HAVE_ARCH_PCI_SET_DMA_MAX_SEGMENT_SIZE | ||
2298 | int pci_set_dma_max_seg_size(struct pci_dev *dev, unsigned int size) | 2297 | int pci_set_dma_max_seg_size(struct pci_dev *dev, unsigned int size) |
2299 | { | 2298 | { |
2300 | return dma_set_max_seg_size(&dev->dev, size); | 2299 | return dma_set_max_seg_size(&dev->dev, size); |
2301 | } | 2300 | } |
2302 | EXPORT_SYMBOL(pci_set_dma_max_seg_size); | 2301 | EXPORT_SYMBOL(pci_set_dma_max_seg_size); |
2303 | #endif | ||
2304 | 2302 | ||
2305 | #ifndef HAVE_ARCH_PCI_SET_DMA_SEGMENT_BOUNDARY | ||
2306 | int pci_set_dma_seg_boundary(struct pci_dev *dev, unsigned long mask) | 2303 | int pci_set_dma_seg_boundary(struct pci_dev *dev, unsigned long mask) |
2307 | { | 2304 | { |
2308 | return dma_set_seg_boundary(&dev->dev, mask); | 2305 | return dma_set_seg_boundary(&dev->dev, mask); |
2309 | } | 2306 | } |
2310 | EXPORT_SYMBOL(pci_set_dma_seg_boundary); | 2307 | EXPORT_SYMBOL(pci_set_dma_seg_boundary); |
2311 | #endif | ||
2312 | 2308 | ||
2313 | static int pcie_flr(struct pci_dev *dev, int probe) | 2309 | static int pcie_flr(struct pci_dev *dev, int probe) |
2314 | { | 2310 | { |