mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-25 23:26:03 +08:00
drivers: net: eql: 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
cec55a92a9
commit
fb4de582a2
@ -178,10 +178,8 @@ static void __init eql_setup(struct net_device *dev)
|
|||||||
{
|
{
|
||||||
equalizer_t *eql = netdev_priv(dev);
|
equalizer_t *eql = netdev_priv(dev);
|
||||||
|
|
||||||
init_timer(&eql->timer);
|
setup_timer(&eql->timer, eql_timer, (unsigned long)eql);
|
||||||
eql->timer.data = (unsigned long) eql;
|
|
||||||
eql->timer.expires = jiffies + EQL_DEFAULT_RESCHED_IVAL;
|
eql->timer.expires = jiffies + EQL_DEFAULT_RESCHED_IVAL;
|
||||||
eql->timer.function = eql_timer;
|
|
||||||
|
|
||||||
spin_lock_init(&eql->queue.lock);
|
spin_lock_init(&eql->queue.lock);
|
||||||
INIT_LIST_HEAD(&eql->queue.all_slaves);
|
INIT_LIST_HEAD(&eql->queue.all_slaves);
|
||||||
|
Loading…
Reference in New Issue
Block a user