diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-21 19:04:37 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 20:44:40 +0200 |
commit | 4896ad68ec3803d01a0d9fead64451377ea1ec5f (patch) | |
tree | 88904123b8c10ea3dd5dad0c4ddba82f062b1466 /drivers/net/ethernet/broadcom/tg3.c | |
parent | drivers: net: sundance: use setup_timer() helper. (diff) | |
download | linux-4896ad68ec3803d01a0d9fead64451377ea1ec5f.tar.xz linux-4896ad68ec3803d01a0d9fead64451377ea1ec5f.zip |
drivers: net: tg3: 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/broadcom/tg3.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/tg3.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index 656e6af70f0a..d8d5f207c759 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c @@ -11087,9 +11087,7 @@ static void tg3_timer_init(struct tg3 *tp) tp->asf_multiplier = (HZ / tp->timer_offset) * TG3_FW_UPDATE_FREQ_SEC; - init_timer(&tp->timer); - tp->timer.data = (unsigned long) tp; - tp->timer.function = tg3_timer; + setup_timer(&tp->timer, tg3_timer, (unsigned long)tp); } static void tg3_timer_start(struct tg3 *tp) |