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

drivers: net: arcnet: 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 9f5ca881
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -450,9 +450,7 @@ struct net_device *alloc_arcdev(const char *name)

		lp->dev = dev;
		spin_lock_init(&lp->lock);
		init_timer(&lp->timer);
		lp->timer.data = (unsigned long) dev;
		lp->timer.function = arcnet_timer;
		setup_timer(&lp->timer, arcnet_timer, (unsigned long)dev);
	}

	return dev;