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

drivers: net: ixgb: 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 f40c9d5a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -508,9 +508,8 @@ ixgb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)

	adapter->part_num = ixgb_get_ee_pba_number(&adapter->hw);

	init_timer(&adapter->watchdog_timer);
	adapter->watchdog_timer.function = ixgb_watchdog;
	adapter->watchdog_timer.data = (unsigned long)adapter;
	setup_timer(&adapter->watchdog_timer, ixgb_watchdog,
		    (unsigned long)adapter);

	INIT_WORK(&adapter->tx_timeout_task, ixgb_tx_timeout_task);