mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 13:22:57 +00:00
drivers: net: bnxt: 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
a76aec2ac5
commit
6c43824477
1 changed files with 1 additions and 3 deletions
|
@ -7190,9 +7190,7 @@ static int bnxt_init_board(struct pci_dev *pdev, struct net_device *dev)
|
|||
|
||||
bp->stats_coal_ticks = BNXT_DEF_STATS_COAL_TICKS;
|
||||
|
||||
init_timer(&bp->timer);
|
||||
bp->timer.data = (unsigned long)bp;
|
||||
bp->timer.function = bnxt_timer;
|
||||
setup_timer(&bp->timer, bnxt_timer, (unsigned long)bp);
|
||||
bp->current_interval = BNXT_TIMER_INTERVAL;
|
||||
|
||||
clear_bit(BNXT_STATE_OPEN, &bp->state);
|
||||
|
|
Loading…
Reference in a new issue