]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
igc: Remove unused igc_read/write_pcie_cap_reg
authorDr. David Alan Gilbert <linux@treblig.org>
Thu, 2 Jan 2025 17:41:42 +0000 (17:41 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 6 Jan 2025 21:32:44 +0000 (13:32 -0800)
The last uses of igc_read_pcie_cap_reg() and igc_write_pcie_cap_reg()
were removed in 2019 by
commit 16ecd8d9af26 ("igc: Remove the obsolete workaround")

Remove them.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://patch.msgid.link/20250102174142.200700-4-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/igc/igc_hw.h
drivers/net/ethernet/intel/igc/igc_main.c

index 7ec7e395020bd28657012852e1da7daec683595c..be8a49a86d09f72dc0ddffbc4bfa20254ddb08f0 100644 (file)
@@ -279,7 +279,4 @@ struct net_device *igc_get_hw_dev(struct igc_hw *hw);
 #define hw_dbg(format, arg...) \
        netdev_dbg(igc_get_hw_dev(hw), format, ##arg)
 
-s32  igc_read_pcie_cap_reg(struct igc_hw *hw, u32 reg, u16 *value);
-s32  igc_write_pcie_cap_reg(struct igc_hw *hw, u32 reg, u16 *value);
-
 #endif /* _IGC_HW_H_ */
index 9c92673a72402f3c8971470fb6b07d34cb129864..f58cd6940434ae4d912967866eacc542e1f1382c 100644 (file)
@@ -6779,31 +6779,6 @@ static const struct net_device_ops igc_netdev_ops = {
        .ndo_get_tstamp         = igc_get_tstamp,
 };
 
-/* PCIe configuration access */
-s32 igc_read_pcie_cap_reg(struct igc_hw *hw, u32 reg, u16 *value)
-{
-       struct igc_adapter *adapter = hw->back;
-
-       if (!pci_is_pcie(adapter->pdev))
-               return -IGC_ERR_CONFIG;
-
-       pcie_capability_read_word(adapter->pdev, reg, value);
-
-       return IGC_SUCCESS;
-}
-
-s32 igc_write_pcie_cap_reg(struct igc_hw *hw, u32 reg, u16 *value)
-{
-       struct igc_adapter *adapter = hw->back;
-
-       if (!pci_is_pcie(adapter->pdev))
-               return -IGC_ERR_CONFIG;
-
-       pcie_capability_write_word(adapter->pdev, reg, *value);
-
-       return IGC_SUCCESS;
-}
-
 u32 igc_rd32(struct igc_hw *hw, u32 reg)
 {
        struct igc_adapter *igc = container_of(hw, struct igc_adapter, hw);