diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-pci.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-pci.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-pci.c b/drivers/net/wireless/iwlwifi/iwl-pci.c index 353022d406ea..0c16efebf93d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-pci.c +++ b/drivers/net/wireless/iwlwifi/iwl-pci.c | |||
@@ -87,25 +87,6 @@ struct iwl_pci_bus { | |||
87 | #define IWL_BUS_GET_PCI_DEV(_iwl_bus) \ | 87 | #define IWL_BUS_GET_PCI_DEV(_iwl_bus) \ |
88 | ((IWL_BUS_GET_PCI_BUS(_iwl_bus))->pci_dev) | 88 | ((IWL_BUS_GET_PCI_BUS(_iwl_bus))->pci_dev) |
89 | 89 | ||
90 | static u16 iwl_pciexp_link_ctrl(struct iwl_bus *bus) | ||
91 | { | ||
92 | int pos; | ||
93 | u16 pci_lnk_ctl; | ||
94 | |||
95 | struct pci_dev *pci_dev = IWL_BUS_GET_PCI_DEV(bus); | ||
96 | |||
97 | pos = pci_pcie_cap(pci_dev); | ||
98 | pci_read_config_word(pci_dev, pos + PCI_EXP_LNKCTL, &pci_lnk_ctl); | ||
99 | return pci_lnk_ctl; | ||
100 | } | ||
101 | |||
102 | static bool iwl_pci_is_pm_supported(struct iwl_bus *bus) | ||
103 | { | ||
104 | u16 lctl = iwl_pciexp_link_ctrl(bus); | ||
105 | |||
106 | return !(lctl & PCI_CFG_LINK_CTRL_VAL_L0S_EN); | ||
107 | } | ||
108 | |||
109 | static void iwl_pci_get_hw_id_string(struct iwl_bus *bus, char buf[], | 90 | static void iwl_pci_get_hw_id_string(struct iwl_bus *bus, char buf[], |
110 | int buf_len) | 91 | int buf_len) |
111 | { | 92 | { |
@@ -123,7 +104,6 @@ static u32 iwl_pci_get_hw_id(struct iwl_bus *bus) | |||
123 | } | 104 | } |
124 | 105 | ||
125 | static const struct iwl_bus_ops bus_ops_pci = { | 106 | static const struct iwl_bus_ops bus_ops_pci = { |
126 | .get_pm_support = iwl_pci_is_pm_supported, | ||
127 | .get_hw_id_string = iwl_pci_get_hw_id_string, | 107 | .get_hw_id_string = iwl_pci_get_hw_id_string, |
128 | .get_hw_id = iwl_pci_get_hw_id, | 108 | .get_hw_id = iwl_pci_get_hw_id, |
129 | }; | 109 | }; |