mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-22 09:23:06 +07:00
drivers: net: ixgb: use setup_timer() helper.
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais <allen.lkml@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f40c9d5aea
commit
82a8c67451
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user