mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
drivers: net: appletalk: 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
7890d53419
commit
ba7400ed88
@ -1165,9 +1165,7 @@ struct net_device * __init ltpc_probe(void)
|
||||
dev->irq = 0;
|
||||
/* polled mode -- 20 times per second */
|
||||
/* this is really, really slow... should it poll more often? */
|
||||
init_timer(<pc_timer);
|
||||
ltpc_timer.function=ltpc_poll;
|
||||
ltpc_timer.data = (unsigned long) dev;
|
||||
setup_timer(<pc_timer, ltpc_poll, (unsigned long)dev);
|
||||
|
||||
ltpc_timer.expires = jiffies + HZ/20;
|
||||
add_timer(<pc_timer);
|
||||
|
Loading…
Reference in New Issue
Block a user