]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/6xx: Use setup_timer() helper
authorAllen Pais <allen.lkml@gmail.com>
Fri, 22 Sep 2017 11:34:59 +0000 (17:04 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Oct 2017 00:28:02 +0000 (11:28 +1100)
Use setup_timer function instead of initializing timer with the
function and data fields.

Signed-off-by: Allen Pais <allen.lkml@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/tau_6xx.c

index a753b72efbc0ce319f6d0a0d3e2d191030d7a84f..726c2d683f93dfa42626c8bb45a342f332029312 100644 (file)
@@ -229,8 +229,7 @@ int __init TAU_init(void)
 
 
        /* first, set up the window shrinking timer */
-       init_timer(&tau_timer);
-       tau_timer.function = tau_timeout_smp;
+       setup_timer(&tau_timer, tau_timeout_smp, 0UL);
        tau_timer.expires = jiffies + shrink_timer;
        add_timer(&tau_timer);