aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2014-01-10 16:01:05 -0500
committerBjorn Helgaas <bhelgaas@google.com>2014-01-10 18:58:49 -0500
commitecc8635608342a05ded722f0e30e6ccd682f84a6 (patch)
tree33291aa0450523faefef5a2273012b986538b2d8 /include/linux
parent3ea8197e1371abd68aef289cad97feb764281642 (diff)
PCI: Remove unused Optimized Buffer Flush/Fill support
My philosophy is unused code is dead code. And dead code is subject to bit rot and is a likely source of bugs. Use it or lose it. This reverts 48a92a8179b3 ("PCI: add OBFF enable/disable support"), removing these interfaces: pci_enable_obff() pci_disable_obff() [bhelgaas: split to separate patch, also remove prototypes from pci.h] Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pci.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index ee26454746ba..b8cbe52c7a48 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1002,13 +1002,6 @@ static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state,
1002void pci_enable_ido(struct pci_dev *dev, unsigned long type); 1002void pci_enable_ido(struct pci_dev *dev, unsigned long type);
1003void pci_disable_ido(struct pci_dev *dev, unsigned long type); 1003void pci_disable_ido(struct pci_dev *dev, unsigned long type);
1004 1004
1005enum pci_obff_signal_type {
1006 PCI_EXP_OBFF_SIGNAL_L0 = 0,
1007 PCI_EXP_OBFF_SIGNAL_ALWAYS = 1,
1008};
1009int pci_enable_obff(struct pci_dev *dev, enum pci_obff_signal_type);
1010void pci_disable_obff(struct pci_dev *dev);
1011
1012/* For use by arch with custom probe code */ 1005/* For use by arch with custom probe code */
1013void set_pcie_port_type(struct pci_dev *pdev); 1006void set_pcie_port_type(struct pci_dev *pdev);
1014void set_pcie_hotplug_bridge(struct pci_dev *pdev); 1007void set_pcie_hotplug_bridge(struct pci_dev *pdev);
@@ -1427,15 +1420,6 @@ static inline void pci_disable_ido(struct pci_dev *dev, unsigned long type)
1427{ 1420{
1428} 1421}
1429 1422
1430static inline int pci_enable_obff(struct pci_dev *dev, unsigned long type)
1431{
1432 return 0;
1433}
1434
1435static inline void pci_disable_obff(struct pci_dev *dev)
1436{
1437}
1438
1439static inline int pci_request_regions(struct pci_dev *dev, const char *res_name) 1423static inline int pci_request_regions(struct pci_dev *dev, const char *res_name)
1440{ 1424{
1441 return -EIO; 1425 return -EIO;