diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2014-01-10 17:23:16 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-01-13 13:14:44 -0500 |
commit | 8f92fb06ffb090f2b22717481352f1e58511c834 (patch) | |
tree | d6af824c7899350c00ce784b8a3a904d9c3f1a0f /include/linux/pci.h | |
parent | 3984ca1c6e493d06fa7e8dc96ce2b23b86175ec4 (diff) |
PCI: Remove unused pcie_aspm_enabled()
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 part of 3e1b16002af2 ("ACPI/PCI: PCIe ASPM _OSC support
capabilities called when root bridge added"), removing this interface:
pcie_aspm_enabled()
[bhelgaas: split to separate patch]
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Andrew Patterson <andrew.patterson@hp.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 53cdc6dc411b..ac4703f719f7 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -1200,10 +1200,8 @@ extern bool pcie_ports_auto; | |||
1200 | #endif | 1200 | #endif |
1201 | 1201 | ||
1202 | #ifndef CONFIG_PCIEASPM | 1202 | #ifndef CONFIG_PCIEASPM |
1203 | static inline int pcie_aspm_enabled(void) { return 0; } | ||
1204 | static inline bool pcie_aspm_support_enabled(void) { return false; } | 1203 | static inline bool pcie_aspm_support_enabled(void) { return false; } |
1205 | #else | 1204 | #else |
1206 | int pcie_aspm_enabled(void); | ||
1207 | bool pcie_aspm_support_enabled(void); | 1205 | bool pcie_aspm_support_enabled(void); |
1208 | #endif | 1206 | #endif |
1209 | 1207 | ||