summaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_82599.c
diff options
context:
space:
mode:
authorEmil Tantilov2011-04-13 06:56:15 +0200
committerJeff Kirsher2011-05-04 21:13:59 +0200
commit6d980c3e50189e5437fdb5ef2c6e6d3c282035dc (patch)
tree20c1195b8f495a8f0f93f7b3041288dc3aa88521 /drivers/net/ixgbe/ixgbe_82599.c
parentigbvf: remove bogus phys_id (diff)
downloadkernel-qcow2-linux-6d980c3e50189e5437fdb5ef2c6e6d3c282035dc.tar.gz
kernel-qcow2-linux-6d980c3e50189e5437fdb5ef2c6e6d3c282035dc.tar.xz
kernel-qcow2-linux-6d980c3e50189e5437fdb5ef2c6e6d3c282035dc.zip
ixgbe: Use function pointer for ixgbe_acquire/release_swfw_sync()
Change remaining direct calls to function pointers. Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Tested-by: Evan Swanson <evan.swanson@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_82599.c')
-rw-r--r--drivers/net/ixgbe/ixgbe_82599.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ixgbe/ixgbe_82599.c b/drivers/net/ixgbe/ixgbe_82599.c
index d1cda36507f8..5b8e17efd8d2 100644
--- a/drivers/net/ixgbe/ixgbe_82599.c
+++ b/drivers/net/ixgbe/ixgbe_82599.c
@@ -110,7 +110,6 @@ static s32 ixgbe_setup_sfp_modules_82599(struct ixgbe_hw *hw)
ret_val = ixgbe_get_sfp_init_sequence_offsets(hw, &list_offset,
&data_offset);
-
if (ret_val != 0)
goto setup_sfp_out;
@@ -130,7 +129,7 @@ static s32 ixgbe_setup_sfp_modules_82599(struct ixgbe_hw *hw)
}
/* Release the semaphore */
- ixgbe_release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM);
+ hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM);
/*
* Delay obtaining semaphore again to allow FW access,
* semaphore_delay is in ms usleep_range needs us.