e1000e: cleanup: rename e1000e_setup_link() and call as function pointer
Rename e1000e_setup_link() to e1000e_setup_link_generic() to signify the function is used for more than one MAC-family type. The 82571-family has a custom setup_link function which also calls the generic function. The ich8lan-family has a custom function which should just be called via the function pointer. The 80003es2lan-family just uses the generic function. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
d1964eb138
commit
1a46b40fbb
@@ -838,7 +838,7 @@ static s32 e1000_init_hw_80003es2lan(struct e1000_hw *hw)
|
||||
E1000_WRITE_REG_ARRAY(hw, E1000_MTA, i, 0);
|
||||
|
||||
/* Setup link and flow control */
|
||||
ret_val = e1000e_setup_link(hw);
|
||||
ret_val = mac->ops.setup_link(hw);
|
||||
|
||||
/* Disable IBIST slave mode (far-end loopback) */
|
||||
e1000_read_kmrn_reg_80003es2lan(hw, E1000_KMRNCTRLSTA_INBAND_PARAM,
|
||||
@@ -1429,7 +1429,7 @@ static const struct e1000_mac_operations es2_mac_ops = {
|
||||
.clear_vfta = e1000_clear_vfta_generic,
|
||||
.reset_hw = e1000_reset_hw_80003es2lan,
|
||||
.init_hw = e1000_init_hw_80003es2lan,
|
||||
.setup_link = e1000e_setup_link,
|
||||
.setup_link = e1000e_setup_link_generic,
|
||||
/* setup_physical_interface dependent on media type */
|
||||
.setup_led = e1000e_setup_led_generic,
|
||||
};
|
||||
|
Reference in New Issue
Block a user