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

drivers: net: declance: 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 c3bd81cc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1246,9 +1246,9 @@ static int dec_lance_probe(struct device *bdev, const int type)
	 * can occur from interrupts (ex. IPv6).  So we
	 * use a timer to try again later when necessary. -DaveM
	 */
	init_timer(&lp->multicast_timer);
	lp->multicast_timer.data = (unsigned long) dev;
	lp->multicast_timer.function = lance_set_multicast_retry;
	setup_timer(&lp->multicast_timer, lance_set_multicast_retry,
		    (unsigned long)dev);


	ret = register_netdev(dev);
	if (ret) {