mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 02:04:19 +08:00
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>
This commit is contained in:
parent
88e8aa1725
commit
4896ad68ec
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user