]> Pileus Git - ~andy/linux/commitdiff
PCI: Remove unused pcie_aspm_enabled()
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 10 Jan 2014 22:23:16 +0000 (15:23 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 13 Jan 2014 18:14:44 +0000 (11:14 -0700)
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>
drivers/pci/pcie/aspm.c
include/linux/pci.h

index f1272dc54de176125a63be94ad6f40b7aa64659e..e1e7026b838dd23b2043813d22fc0d718a7e6829 100644 (file)
@@ -984,18 +984,6 @@ void pcie_no_aspm(void)
        }
 }
 
-/**
- * pcie_aspm_enabled - is PCIe ASPM enabled?
- *
- * Returns true if ASPM has not been disabled by the command-line option
- * pcie_aspm=off.
- **/
-int pcie_aspm_enabled(void)
-{
-       return !aspm_disabled;
-}
-EXPORT_SYMBOL(pcie_aspm_enabled);
-
 bool pcie_aspm_support_enabled(void)
 {
        return aspm_support_enabled;
index 53cdc6dc411b058c85a8e37130fb2838ba91742f..ac4703f719f7b1de8da7b7d08b43baf83f2d7cb1 100644 (file)
@@ -1200,10 +1200,8 @@ extern bool pcie_ports_auto;
 #endif
 
 #ifndef CONFIG_PCIEASPM
-static inline int pcie_aspm_enabled(void) { return 0; }
 static inline bool pcie_aspm_support_enabled(void) { return false; }
 #else
-int pcie_aspm_enabled(void);
 bool pcie_aspm_support_enabled(void);
 #endif