Commit 5da3fc73 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_ppp.c

From:  Vinay K Nallamothu <vinay-rc@naturesoft.net>
parent 9955cede
...@@ -762,9 +762,7 @@ static int if_open(struct net_device *dev) ...@@ -762,9 +762,7 @@ static int if_open(struct net_device *dev)
/* Start the PPP configuration after 1sec delay. /* Start the PPP configuration after 1sec delay.
* This will give the interface initilization time * This will give the interface initilization time
* to finish its configuration */ * to finish its configuration */
del_timer(&ppp_priv_area->poll_delay_timer); mod_timer(&ppp_priv_area->poll_delay_timer, jiffies + HZ);
ppp_priv_area->poll_delay_timer.expires = jiffies+HZ;
add_timer(&ppp_priv_area->poll_delay_timer);
return 0; return 0;
} }
......
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