Skip to contentSkip to conversation

ia64: salinfo: use setup_timer() helper.

PATCH In review Allen Pais 1 participant 1 message Sep 22, 2017

lore
Share & tools
lore

Allen Pais

author
#0 lore raw

PATCH 3/3 ia64: salinfo: use setup_timer() helper.

Use setup_timer function instead of initializing timer with the function and data fields.

---
 arch/ia64/kernel/salinfo.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/ia64/kernel/salinfo.c +1 -2
index 63dc9cd..ac31b00 100644
@@ -623,9 +623,8 @@ salinfo_init(void)
 
 	*sdir++ = salinfo_dir;
 
-	init_timer(&salinfo_timer);
+	setup_timer(&salinfo_timer, &salinfo_timeout, 0UL);
 	salinfo_timer.expires = jiffies + SALINFO_TIMER_DELAY;
-	salinfo_timer.function = &salinfo_timeout;
 	add_timer(&salinfo_timer);
 
 	i = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "ia64/salinfo:online",
Signature · 1 line
2.7.4