Skip to content

Commit

Permalink
MIPS: Lasat: Use setup_timer() helper
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Allen Pais authored and James Hogan committed Nov 8, 2017
1 parent d3a0b96 commit e629cfa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/mips/lasat/picvue_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e629cfa

Please sign in to comment.