diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-21 13:04:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 14:44:39 -0400 |
commit | 1e153e554fc8a3744d1fa8a36d4cb3b4cfbdc3da (patch) | |
tree | 68dc1d071c789eb834e0146b296b702c15c36439 /drivers/net/appletalk | |
parent | 07b6901f61813aa547c5a25e118f977022fec9eb (diff) |
drivers: net: appletalk: cops: 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/appletalk')
-rw-r--r-- | drivers/net/appletalk/cops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/appletalk/cops.c b/drivers/net/appletalk/cops.c index 486e1e6997fc..caf04284711a 100644 --- a/drivers/net/appletalk/cops.c +++ b/drivers/net/appletalk/cops.c | |||
@@ -424,9 +424,7 @@ static int cops_open(struct net_device *dev) | |||
424 | */ | 424 | */ |
425 | if(lp->board==TANGENT) /* Poll 20 times per second */ | 425 | if(lp->board==TANGENT) /* Poll 20 times per second */ |
426 | { | 426 | { |
427 | init_timer(&cops_timer); | 427 | setup_timer(&cops_timer, cops_poll, (unsigned long)dev); |
428 | cops_timer.function = cops_poll; | ||
429 | cops_timer.data = (unsigned long)dev; | ||
430 | cops_timer.expires = jiffies + HZ/20; | 428 | cops_timer.expires = jiffies + HZ/20; |
431 | add_timer(&cops_timer); | 429 | add_timer(&cops_timer); |
432 | } | 430 | } |