Commit d5f303f1 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] [PATCH 2.5.72] Use mod_timer in drivers_net_wan_sdla_chdlc.c

From:  Vinay K Nallamothu <vinay-rc@naturesoft.net>
parent 49f62105
......@@ -996,13 +996,11 @@ static int if_open(struct net_device* dev)
set_bit(0,&chdlc_priv_area->config_chdlc);
chdlc_priv_area->config_chdlc_timeout=jiffies;
del_timer(&chdlc_priv_area->poll_delay_timer);
/* Start the CHDLC configuration after 1sec delay.
* This will give the interface initilization time
* to finish its configuration */
chdlc_priv_area->poll_delay_timer.expires=jiffies+HZ;
add_timer(&chdlc_priv_area->poll_delay_timer);
mod_timer(&chdlc_priv_area->poll_delay_timer, jiffies + HZ);
return err;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment