aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic_init.c
diff options
context:
space:
mode:
authorSony Chacko <sony.chacko@qlogic.com>2010-08-19 01:08:24 -0400
committerDavid S. Miller <davem@davemloft.net>2010-08-19 19:52:38 -0400
commit251b036a22f530aff26cf70f5cdb0cf64a072e46 (patch)
tree1e4aba3bedbd87c0ff1f9e0365d6888f41bc0a14 /drivers/net/qlcnic/qlcnic_init.c
parent39895e07ca8ce13d8b38d00bf66236b93907c027 (diff)
qlcnic: replace magic numbers with defines
Signed-off-by: Sony Chacko <sony.chacko@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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/qlcnic/qlcnic_init.c b/drivers/net/qlcnic/qlcnic_init.c
index 08da25895fad..90766757c314 100644
--- a/drivers/net/qlcnic/qlcnic_init.c
+++ b/drivers/net/qlcnic/qlcnic_init.c
@@ -553,12 +553,12 @@ qlcnic_setup_idc_param(struct qlcnic_adapter *adapter) {
553 } 553 }
554 adapter->physical_port = (val >> 2); 554 adapter->physical_port = (val >> 2);
555 if (qlcnic_rom_fast_read(adapter, QLCNIC_ROM_DEV_INIT_TIMEOUT, &timeo)) 555 if (qlcnic_rom_fast_read(adapter, QLCNIC_ROM_DEV_INIT_TIMEOUT, &timeo))
556 timeo = 30; 556 timeo = QLCNIC_INIT_TIMEOUT_SECS;
557 557
558 adapter->dev_init_timeo = timeo; 558 adapter->dev_init_timeo = timeo;
559 559
560 if (qlcnic_rom_fast_read(adapter, QLCNIC_ROM_DRV_RESET_TIMEOUT, &timeo)) 560 if (qlcnic_rom_fast_read(adapter, QLCNIC_ROM_DRV_RESET_TIMEOUT, &timeo))
561 timeo = 10; 561 timeo = QLCNIC_RESET_TIMEOUT_SECS;
562 562
563 adapter->reset_ack_timeo = timeo; 563 adapter->reset_ack_timeo = timeo;
564 564