mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 06:08:22 +00:00
drivers: net: smsc: 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
0625d739cc
commit
32db034501
1 changed files with 1 additions and 3 deletions
|
@ -739,10 +739,8 @@ static int epic_open(struct net_device *dev)
|
|||
|
||||
/* Set the timer to switch to check for link beat and perhaps switch
|
||||
to an alternate media type. */
|
||||
init_timer(&ep->timer);
|
||||
setup_timer(&ep->timer, epic_timer, (unsigned long)dev);
|
||||
ep->timer.expires = jiffies + 3*HZ;
|
||||
ep->timer.data = (unsigned long)dev;
|
||||
ep->timer.function = epic_timer; /* timer handler */
|
||||
add_timer(&ep->timer);
|
||||
|
||||
return rc;
|
||||
|
|
Loading…
Add table
Reference in a new issue