aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Rustad <mark.d.rustad@intel.com>2015-09-09 16:37:33 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-10-15 05:27:25 -0400
commita85ce532f28efabda030d9065a0c2023a2003f36 (patch)
tree525e033f90095f8a6f3b56927a3ddd2090e73844
parent164f739361c962ac63aa6f7cbd48309d1bff15fb (diff)
ixgbe: Check for setup_internal_link method
Only call the internal_setup_link method when it is provided. This check is required for newer version parts. Signed-off-by: Mark Rustad <mark.d.rustad@intel.com> Tested-by: Darin Miller <darin.j.miller@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
index 06b15eddc4ae..ebe0ac950b14 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
@@ -1617,7 +1617,7 @@ static s32 ixgbe_handle_lasi_ext_t_x550em(struct ixgbe_hw *hw)
1617 if (status) 1617 if (status)
1618 return status; 1618 return status;
1619 1619
1620 if (lsc) 1620 if (lsc && phy->ops.setup_internal_link)
1621 return phy->ops.setup_internal_link(hw); 1621 return phy->ops.setup_internal_link(hw);
1622 1622
1623 return 0; 1623 return 0;