Skip to contentSkip to conversation

mips: use setup_timer() helper.

PATCH Applied Allen Pais 2 participants 2 messages Sep 22, 2017 – Nov 9, 2017 MIPS

lore
Share & tools
lore

Allen Pais

author
#0 lore raw

PATCH 1/1 mips: use setup_timer() helper.

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

---
 arch/mips/lasat/picvue_proc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/mips/lasat/picvue_proc.c +1 -2
index dd292dc..a8103f6 100644
@@ -197,8 +197,7 @@ static int __init pvc_proc_init(void)
 	if (proc_entry == NULL)
 		goto error;
 
-	init_timer(&timer);
-	timer.function = pvc_proc_timerfunc;
+	setup_timer(&timer, pvc_proc_timerfunc, 0UL);
 
 	return 0;
 error:
Signature · 1 line
2.7.4
Applied
#1 lore raw
Quoted 4 lines · Allen Pais

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

Thanks, applied for 4.15.

Cheers
James

Quoted 18 lines
---
 arch/mips/lasat/picvue_proc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/mips/lasat/picvue_proc.c +1 -2
index dd292dc..a8103f6 100644
@@ -197,8 +197,7 @@ static int __init pvc_proc_init(void)
 	if (proc_entry == NULL)
 		goto error;
 
-	init_timer(&timer);
-	timer.function = pvc_proc_timerfunc;
+	setup_timer(&timer, pvc_proc_timerfunc, 0UL);
 
 	return 0;
 error: