diff options
Diffstat (limited to 'drivers/net/bnx2x_link.c')
-rw-r--r-- | drivers/net/bnx2x_link.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/bnx2x_link.c b/drivers/net/bnx2x_link.c index a24bc51c9855..1f17334c8f02 100644 --- a/drivers/net/bnx2x_link.c +++ b/drivers/net/bnx2x_link.c | |||
@@ -4916,13 +4916,14 @@ static void bnx2x_turn_off_sf(struct bnx2x *bp, u8 port) | |||
4916 | u8 bnx2x_get_ext_phy_fw_version(struct link_params *params, u8 driver_loaded, | 4916 | u8 bnx2x_get_ext_phy_fw_version(struct link_params *params, u8 driver_loaded, |
4917 | u8 *version, u16 len) | 4917 | u8 *version, u16 len) |
4918 | { | 4918 | { |
4919 | struct bnx2x *bp = params->bp; | 4919 | struct bnx2x *bp; |
4920 | u32 ext_phy_type = 0; | 4920 | u32 ext_phy_type = 0; |
4921 | u32 spirom_ver = 0; | 4921 | u32 spirom_ver = 0; |
4922 | u8 status = 0 ; | 4922 | u8 status = 0 ; |
4923 | 4923 | ||
4924 | if (version == NULL || params == NULL) | 4924 | if (version == NULL || params == NULL) |
4925 | return -EINVAL; | 4925 | return -EINVAL; |
4926 | bp = params->bp; | ||
4926 | 4927 | ||
4927 | spirom_ver = REG_RD(bp, params->shmem_base + | 4928 | spirom_ver = REG_RD(bp, params->shmem_base + |
4928 | offsetof(struct shmem_region, | 4929 | offsetof(struct shmem_region, |