diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-21 19:04:55 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 20:44:42 +0200 |
commit | fb4de582a22282fa0f9665fd363dfd3e073c40f6 (patch) | |
tree | 515b862e71dd17ede62bd219f75f025250bf8684 /drivers/net/eql.c | |
parent | drivers: net: amd8111e: use setup_timer() helper. (diff) | |
download | linux-fb4de582a22282fa0f9665fd363dfd3e073c40f6.tar.xz linux-fb4de582a22282fa0f9665fd363dfd3e073c40f6.zip |
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>
Diffstat (limited to 'drivers/net/eql.c')
-rw-r--r-- | drivers/net/eql.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/eql.c b/drivers/net/eql.c index fe13bfea30ac..fccce4b47778 100644 --- a/drivers/net/eql.c +++ b/drivers/net/eql.c @@ -178,10 +178,8 @@ static void __init eql_setup(struct net_device *dev) { equalizer_t *eql = netdev_priv(dev); - init_timer(&eql->timer); - eql->timer.data = (unsigned long) eql; + setup_timer(&eql->timer, eql_timer, (unsigned long)eql); eql->timer.expires = jiffies + EQL_DEFAULT_RESCHED_IVAL; - eql->timer.function = eql_timer; spin_lock_init(&eql->queue.lock); INIT_LIST_HEAD(&eql->queue.all_slaves); |