summaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic_init.c
diff options
context:
space:
mode:
authorAmit Kumar Salecha <amit.salecha@qlogic.com>2010-03-08 00:14:49 +0000
committerDavid S. Miller <davem@davemloft.net>2010-03-08 10:45:30 -0800
commitaddd5abf49be31787aeb6203d266e0bd31a3fadd (patch)
treebdddaaceab73650c7287834a85cba1d4746f2d46 /drivers/net/qlcnic/qlcnic_init.c
parentb7eff1007fea3d153a9a5c0f872304ec19412bbb (diff)
downloadblackbird-op-linux-addd5abf49be31787aeb6203d266e0bd31a3fadd.tar.gz
blackbird-op-linux-addd5abf49be31787aeb6203d266e0bd31a3fadd.zip
qlcnic: fix bios version check
Bios sub version from unified fw image is calculated incorrect. Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_init.c')
-rw-r--r--drivers/net/qlcnic/qlcnic_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/qlcnic/qlcnic_init.c b/drivers/net/qlcnic/qlcnic_init.c
index 21a6e9f3dac5..7c34e4e29b3f 100644
--- a/drivers/net/qlcnic/qlcnic_init.c
+++ b/drivers/net/qlcnic/qlcnic_init.c
@@ -847,7 +847,7 @@ qlcnic_get_bios_version(struct qlcnic_adapter *adapter)
bios_ver = cpu_to_le32(*((u32 *) (&fw->data[prd_off])
+ QLCNIC_UNI_BIOS_VERSION_OFF));
- return (bios_ver << 24) + ((bios_ver >> 8) & 0xff00) + (bios_ver >> 24);
+ return (bios_ver << 16) + ((bios_ver >> 8) & 0xff00) + (bios_ver >> 24);
}
int
OpenPOWER on IntegriCloud