Commit e629cfa3 authored by Allen Pais's avatar Allen Pais Committed by James Hogan

MIPS: Lasat: Use setup_timer() helper

Use setup_timer function instead of initializing timer with the function
and data fields.
Signed-off-by: default avatarAllen Pais <allen.lkml@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17341/Signed-off-by: default avatarJames Hogan <jhogan@kernel.org>
parent d3a0b968
...@@ -197,8 +197,7 @@ static int __init pvc_proc_init(void) ...@@ -197,8 +197,7 @@ static int __init pvc_proc_init(void)
if (proc_entry == NULL) if (proc_entry == NULL)
goto error; goto error;
init_timer(&timer); setup_timer(&timer, pvc_proc_timerfunc, 0UL);
timer.function = pvc_proc_timerfunc;
return 0; return 0;
error: error:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment