MIPS: Lasat: Use setup_timer() helper
authorAllen Pais <allen.lkml@gmail.com>
Fri, 22 Sep 2017 11:43:35 +0000 (17:13 +0530)
committerJames Hogan <jhogan@kernel.org>
Wed, 8 Nov 2017 22:12:15 +0000 (22:12 +0000)
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>
arch/mips/lasat/picvue_proc.c

index dd292dcec684a21b7209076cff2668cf1dc503c0..a8103f6972cd43a63163eec228faa5b917685f83 100644 (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: