mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-12 19:44:51 -04:00
drivers: net: sun: 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:
committed by
David S. Miller
parent
b9496b6b91
commit
6d2bcc14f5
@@ -2910,9 +2910,7 @@ static int gem_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
|
||||
gp->msg_enable = DEFAULT_MSG;
|
||||
|
||||
init_timer(&gp->link_timer);
|
||||
gp->link_timer.function = gem_link_timer;
|
||||
gp->link_timer.data = (unsigned long) gp;
|
||||
setup_timer(&gp->link_timer, gem_link_timer, (unsigned long)gp);
|
||||
|
||||
INIT_WORK(&gp->reset_task, gem_reset_task);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user