diff options
author | Himanshu Madhani <himanshu.madhani@qlogic.com> | 2013-08-15 16:29:27 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-16 01:35:00 +0400 |
commit | 24866d15fa07cc8f0a1a8c48846f64af4af5d72a (patch) | |
tree | f184768db373c024963375d009dcef2110639521 /drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c | |
parent | 6829309926b90c4c32d1f4cafeb600cd34a721e3 (diff) | |
download | linux-24866d15fa07cc8f0a1a8c48846f64af4af5d72a.tar.xz |
qlcnic: Fix set driver version command
Driver was issuing set driver version command through all
functions in the adapter. Fix the driver to issue set driver
version once per adapter, through function 0.
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c index 9f4b8d5f0865..345d987aede4 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c @@ -629,7 +629,8 @@ int qlcnic_83xx_idc_reattach_driver(struct qlcnic_adapter *adapter) return -EIO; } - qlcnic_set_drv_version(adapter); + if (adapter->portnum == 0) + qlcnic_set_drv_version(adapter); qlcnic_83xx_idc_attach_driver(adapter); return 0; |