diff options
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 8302e1881b83..bcd192ca47b0 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -4349,20 +4349,6 @@ void e1000_pcix_set_mmrbc(struct e1000_hw *hw, int mmrbc) | |||
4349 | pcix_set_mmrbc(adapter->pdev, mmrbc); | 4349 | pcix_set_mmrbc(adapter->pdev, mmrbc); |
4350 | } | 4350 | } |
4351 | 4351 | ||
4352 | s32 e1000_read_pcie_cap_reg(struct e1000_hw *hw, u32 reg, u16 *value) | ||
4353 | { | ||
4354 | struct e1000_adapter *adapter = hw->back; | ||
4355 | u16 cap_offset; | ||
4356 | |||
4357 | cap_offset = pci_find_capability(adapter->pdev, PCI_CAP_ID_EXP); | ||
4358 | if (!cap_offset) | ||
4359 | return -E1000_ERR_CONFIG; | ||
4360 | |||
4361 | pci_read_config_word(adapter->pdev, cap_offset + reg, value); | ||
4362 | |||
4363 | return E1000_SUCCESS; | ||
4364 | } | ||
4365 | |||
4366 | void e1000_io_write(struct e1000_hw *hw, unsigned long port, u32 value) | 4352 | void e1000_io_write(struct e1000_hw *hw, unsigned long port, u32 value) |
4367 | { | 4353 | { |
4368 | outl(value, port); | 4354 | outl(value, port); |