mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
drivers: net: atp: use setup_timer() helper.
Use setup_timer function instead of initializing timer with the
function and data fields.
Signed-off-by: Allen Pais <allen.lkml@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
531f3ce953
commit
e7bbad4487
1 changed files with 1 additions and 3 deletions
|
|
@ -438,10 +438,8 @@ static int net_open(struct net_device *dev)
|
|||
|
||||
hardware_init(dev);
|
||||
|
||||
init_timer(&lp->timer);
|
||||
setup_timer(&lp->timer, atp_timed_checker, (unsigned long)dev);
|
||||
lp->timer.expires = jiffies + TIMED_CHECKER;
|
||||
lp->timer.data = (unsigned long)dev;
|
||||
lp->timer.function = atp_timed_checker; /* timer handler */
|
||||
add_timer(&lp->timer);
|
||||
|
||||
netif_start_queue(dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue