Commit 7afd516f authored by Allen Pais's avatar Allen Pais Committed by David S. Miller

drivers: net: enic: 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 3e436a25
...@@ -2846,9 +2846,8 @@ static int enic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -2846,9 +2846,8 @@ static int enic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
/* Setup notification timer, HW reset task, and wq locks /* Setup notification timer, HW reset task, and wq locks
*/ */
init_timer(&enic->notify_timer); setup_timer(&enic->notify_timer, enic_notify_timer,
enic->notify_timer.function = enic_notify_timer; (unsigned long)enic);
enic->notify_timer.data = (unsigned long)enic;
enic_set_rx_coal_setting(enic); enic_set_rx_coal_setting(enic);
INIT_WORK(&enic->reset, enic_reset); INIT_WORK(&enic->reset, enic_reset);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment