From: Allen Pais Date: Thu, 21 Sep 2017 17:04:31 +0000 (+0530) Subject: drivers: net: appletalk: cops: use setup_timer() helper. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1e153e554fc8a3744d1fa8a36d4cb3b4cfbdc3da;p=linux.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/appletalk/cops.c b/drivers/net/appletalk/cops.c index 486e1e6997fc8..caf04284711ab 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) */ if(lp->board==TANGENT) /* Poll 20 times per second */ { - init_timer(&cops_timer); - cops_timer.function = cops_poll; - cops_timer.data = (unsigned long)dev; + setup_timer(&cops_timer, cops_poll, (unsigned long)dev); cops_timer.expires = jiffies + HZ/20; add_timer(&cops_timer); }