aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe
diff options
context:
space:
mode:
authorDon Skidmore <donald.c.skidmore@intel.com>2010-12-03 08:24:05 -0500
committerDavid S. Miller <davem@davemloft.net>2010-12-06 16:18:51 -0500
commit9f91170773d852e65e4fc36e1f8173ce614f62e1 (patch)
treee11df21acb55b1bea6f8a3946c81123e3db8e62f /drivers/net/ixgbe
parenta7f5a5fcd9f13afd3471a0de8c1fdaa8f989497c (diff)
ixgbe: fix enum type mismatch on disable laser
Fixes a recent bug on the patch (c6ecf39a10ceec3e97096e2a8d3eadcecd593422) that disabled the laser on ifconfig down. Compilers were seeing a enum mismatch. Signed-off-by Don Skidmore <donald.c.skidmore@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbe')
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index f97353cdb607..a12e86fccb06 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -3800,7 +3800,7 @@ static int ixgbe_up_complete(struct ixgbe_adapter *adapter)
3800 /* enable the optics for both mult-speed fiber and 82599 SFP+ fiber */ 3800 /* enable the optics for both mult-speed fiber and 82599 SFP+ fiber */
3801 if (hw->mac.ops.enable_tx_laser && 3801 if (hw->mac.ops.enable_tx_laser &&
3802 ((hw->phy.multispeed_fiber) || 3802 ((hw->phy.multispeed_fiber) ||
3803 ((hw->phy.type == ixgbe_media_type_fiber) && 3803 ((hw->mac.ops.get_media_type(hw) == ixgbe_media_type_fiber) &&
3804 (hw->mac.type == ixgbe_mac_82599EB)))) 3804 (hw->mac.type == ixgbe_mac_82599EB))))
3805 hw->mac.ops.enable_tx_laser(hw); 3805 hw->mac.ops.enable_tx_laser(hw);
3806 3806
@@ -4122,7 +4122,7 @@ void ixgbe_down(struct ixgbe_adapter *adapter)
4122 /* power down the optics for multispeed fiber and 82599 SFP+ fiber */ 4122 /* power down the optics for multispeed fiber and 82599 SFP+ fiber */
4123 if (hw->mac.ops.disable_tx_laser && 4123 if (hw->mac.ops.disable_tx_laser &&
4124 ((hw->phy.multispeed_fiber) || 4124 ((hw->phy.multispeed_fiber) ||
4125 ((hw->phy.type == ixgbe_media_type_fiber) && 4125 ((hw->mac.ops.get_media_type(hw) == ixgbe_media_type_fiber) &&
4126 (hw->mac.type == ixgbe_mac_82599EB)))) 4126 (hw->mac.type == ixgbe_mac_82599EB))))
4127 hw->mac.ops.disable_tx_laser(hw); 4127 hw->mac.ops.disable_tx_laser(hw);
4128 4128
@@ -7212,7 +7212,7 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
7212 /* power down the optics for multispeed fiber and 82599 SFP+ fiber */ 7212 /* power down the optics for multispeed fiber and 82599 SFP+ fiber */
7213 if (hw->mac.ops.disable_tx_laser && 7213 if (hw->mac.ops.disable_tx_laser &&
7214 ((hw->phy.multispeed_fiber) || 7214 ((hw->phy.multispeed_fiber) ||
7215 ((hw->phy.type == ixgbe_media_type_fiber) && 7215 ((hw->mac.ops.get_media_type(hw) == ixgbe_media_type_fiber) &&
7216 (hw->mac.type == ixgbe_mac_82599EB)))) 7216 (hw->mac.type == ixgbe_mac_82599EB))))
7217 hw->mac.ops.disable_tx_laser(hw); 7217 hw->mac.ops.disable_tx_laser(hw);
7218 7218