summaryrefslogtreecommitdiffstats
path: root/arch/mips/lasat
diff options
context:
space:
mode:
authorAllen Pais <allen.lkml@gmail.com>2017-09-22 17:13:35 +0530
committerJames Hogan <jhogan@kernel.org>2017-11-08 22:12:15 +0000
commite629cfa36ea0877371427b71bdfc701bc46b9880 (patch)
tree7ea9c47e21047064491c82296ad70c61ba099ae3 /arch/mips/lasat
parentd3a0b968186a7e197b7551e4d6080676372152ce (diff)
downloadlinux-stable-e629cfa36ea0877371427b71bdfc701bc46b9880.tar.gz
linux-stable-e629cfa36ea0877371427b71bdfc701bc46b9880.tar.bz2
linux-stable-e629cfa36ea0877371427b71bdfc701bc46b9880.zip
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>
Diffstat (limited to 'arch/mips/lasat')
-rw-r--r--arch/mips/lasat/picvue_proc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips/lasat/picvue_proc.c b/arch/mips/lasat/picvue_proc.c
index dd292dcec684..a8103f6972cd 100644
--- a/arch/mips/lasat/picvue_proc.c
+++ b/arch/mips/lasat/picvue_proc.c
@@ -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: