Commit 1e153e55 authored by Allen Pais's avatar Allen Pais Committed by David S. Miller
Browse files

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: default avatarAllen Pais <allen.lkml@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 07b6901f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);
		}