MIPS: Lasat: 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>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17341/
Signed-off-by: James Hogan <jhogan@kernel.org>
This commit is contained in:
Allen Pais 2017-09-22 17:13:35 +05:30 committed by James Hogan
parent d3a0b96818
commit e629cfa36e
1 changed files with 1 additions and 2 deletions

View File

@ -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: