diff options
| author | Stephen Hemminger <stephen@networkplumber.org> | 2014-01-10 16:01:05 -0500 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-01-10 18:58:49 -0500 |
| commit | ecc8635608342a05ded722f0e30e6ccd682f84a6 (patch) | |
| tree | 33291aa0450523faefef5a2273012b986538b2d8 /include/linux | |
| parent | 3ea8197e1371abd68aef289cad97feb764281642 (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.h | 16 |
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, | |||
| 1002 | void pci_enable_ido(struct pci_dev *dev, unsigned long type); | 1002 | void pci_enable_ido(struct pci_dev *dev, unsigned long type); |
| 1003 | void pci_disable_ido(struct pci_dev *dev, unsigned long type); | 1003 | void pci_disable_ido(struct pci_dev *dev, unsigned long type); |
| 1004 | 1004 | ||
| 1005 | enum pci_obff_signal_type { | ||
| 1006 | PCI_EXP_OBFF_SIGNAL_L0 = 0, | ||
| 1007 | PCI_EXP_OBFF_SIGNAL_ALWAYS = 1, | ||
| 1008 | }; | ||
| 1009 | int pci_enable_obff(struct pci_dev *dev, enum pci_obff_signal_type); | ||
| 1010 | void 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 */ |
| 1013 | void set_pcie_port_type(struct pci_dev *pdev); | 1006 | void set_pcie_port_type(struct pci_dev *pdev); |
| 1014 | void set_pcie_hotplug_bridge(struct pci_dev *pdev); | 1007 | void 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 | ||
| 1430 | static inline int pci_enable_obff(struct pci_dev *dev, unsigned long type) | ||
| 1431 | { | ||
| 1432 | return 0; | ||
| 1433 | } | ||
| 1434 | |||
| 1435 | static inline void pci_disable_obff(struct pci_dev *dev) | ||
| 1436 | { | ||
| 1437 | } | ||
| 1438 | |||
| 1439 | static inline int pci_request_regions(struct pci_dev *dev, const char *res_name) | 1423 | static inline int pci_request_regions(struct pci_dev *dev, const char *res_name) |
| 1440 | { | 1424 | { |
| 1441 | return -EIO; | 1425 | return -EIO; |
