mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
drivers: net: cxgb: 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
570ba3e82b
commit
66f0689030
1 changed files with 2 additions and 3 deletions
|
@ -2075,9 +2075,8 @@ struct sge *t1_sge_create(struct adapter *adapter, struct sge_params *p)
|
|||
goto nomem_port;
|
||||
}
|
||||
|
||||
init_timer(&sge->tx_reclaim_timer);
|
||||
sge->tx_reclaim_timer.data = (unsigned long)sge;
|
||||
sge->tx_reclaim_timer.function = sge_tx_reclaim_cb;
|
||||
setup_timer(&sge->tx_reclaim_timer, sge_tx_reclaim_cb,
|
||||
(unsigned long)sge);
|
||||
|
||||
if (is_T2(sge->adapter)) {
|
||||
init_timer(&sge->espibug_timer);
|
||||
|
|
Loading…
Reference in a new issue