Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

drivers: net: can: usb: 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 fb4de582
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -798,9 +798,8 @@ static int pcan_usb_init(struct peak_usb_device *dev)
	int err;

	/* initialize a timer needed to wait for hardware restart */
	init_timer(&pdev->restart_timer);
	pdev->restart_timer.function = pcan_usb_restart;
	pdev->restart_timer.data = (unsigned long)dev;
	setup_timer(&pdev->restart_timer, pcan_usb_restart,
		    (unsigned long)dev);

	/*
	 * explicit use of dev_xxx() instead of netdev_xxx() here: