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

Commit 0329b7da authored by Geliang Tang's avatar Geliang Tang Committed by David S. Miller
Browse files

ambassador: use setup_timer



Use setup_timer() instead of init_timer() to simplify the code.

Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d1523099
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2267,9 +2267,8 @@ static int amb_probe(struct pci_dev *pci_dev,
	dev->atm_dev->ci_range.vpi_bits = NUM_VPI_BITS;
	dev->atm_dev->ci_range.vci_bits = NUM_VCI_BITS;

	init_timer(&dev->housekeeping);
	dev->housekeeping.function = do_housekeeping;
	dev->housekeeping.data = (unsigned long) dev;
	setup_timer(&dev->housekeeping, do_housekeeping,
		    (unsigned long)dev);
	mod_timer(&dev->housekeeping, jiffies);

	// enable host interrupts