Skip to content

Commit 121c3c6

Browse files
Dr. David Alan Gilbertkuba-moo
authored andcommitted
igc: Remove unused igc_read/write_pci_cfg wrappers
igc_read_pci_cfg() and igc_write_pci_cfg were added in 2018 as part of commit 146740f ("igc: Add support for PF") but have remained unused. Remove them. Signed-off-by: Dr. David Alan Gilbert <[email protected]> Reviewed-by: Tony Nguyen <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent b37dba8 commit 121c3c6

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

drivers/net/ethernet/intel/igc/igc_hw.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,5 @@ struct net_device *igc_get_hw_dev(struct igc_hw *hw);
281281

282282
s32 igc_read_pcie_cap_reg(struct igc_hw *hw, u32 reg, u16 *value);
283283
s32 igc_write_pcie_cap_reg(struct igc_hw *hw, u32 reg, u16 *value);
284-
void igc_read_pci_cfg(struct igc_hw *hw, u32 reg, u16 *value);
285-
void igc_write_pci_cfg(struct igc_hw *hw, u32 reg, u16 *value);
286284

287285
#endif /* _IGC_HW_H_ */

drivers/net/ethernet/intel/igc/igc_main.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6780,20 +6780,6 @@ static const struct net_device_ops igc_netdev_ops = {
67806780
};
67816781

67826782
/* PCIe configuration access */
6783-
void igc_read_pci_cfg(struct igc_hw *hw, u32 reg, u16 *value)
6784-
{
6785-
struct igc_adapter *adapter = hw->back;
6786-
6787-
pci_read_config_word(adapter->pdev, reg, value);
6788-
}
6789-
6790-
void igc_write_pci_cfg(struct igc_hw *hw, u32 reg, u16 *value)
6791-
{
6792-
struct igc_adapter *adapter = hw->back;
6793-
6794-
pci_write_config_word(adapter->pdev, reg, *value);
6795-
}
6796-
67976783
s32 igc_read_pcie_cap_reg(struct igc_hw *hw, u32 reg, u16 *value)
67986784
{
67996785
struct igc_adapter *adapter = hw->back;

0 commit comments

Comments
 (0)