diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-21 22:35:07 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 11:44:43 -0700 |
commit | a76aec2ac51f8a74659cff9b19f712e8fb984393 (patch) | |
tree | 33b2346fe9593af51e43bf3d044ce6e83e7b3ceb /drivers/net/ethernet/dec/tulip/dmfe.c | |
parent | 34b0cf069d174b2615769102d75b4ce687addeb9 (diff) | |
download | op-kernel-dev-a76aec2ac51f8a74659cff9b19f712e8fb984393.zip op-kernel-dev-a76aec2ac51f8a74659cff9b19f712e8fb984393.tar.gz |
drivers: net: dmfe: 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>
Diffstat (limited to 'drivers/net/ethernet/dec/tulip/dmfe.c')
-rw-r--r-- | drivers/net/ethernet/dec/tulip/dmfe.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/dec/tulip/dmfe.c b/drivers/net/ethernet/dec/tulip/dmfe.c index 07e10a4..6585f73 100644 --- a/drivers/net/ethernet/dec/tulip/dmfe.c +++ b/drivers/net/ethernet/dec/tulip/dmfe.c @@ -596,10 +596,8 @@ static int dmfe_open(struct net_device *dev) netif_wake_queue(dev); /* set and active a timer process */ - init_timer(&db->timer); + setup_timer(&db->timer, dmfe_timer, (unsigned long)dev); db->timer.expires = DMFE_TIMER_WUT + HZ * 2; - db->timer.data = (unsigned long)dev; - db->timer.function = dmfe_timer; add_timer(&db->timer); return 0; |