ARM: mmp2: initialize clocks before the timer
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 28 Nov 2018 17:53:19 +0000 (18:53 +0100)
committerOlof Johansson <olof@lixom.net>
Fri, 30 Nov 2018 23:40:01 +0000 (15:40 -0800)
The timer shall enable its clock.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-mmp/mmp2-dt.c

index 0341359b24a43d5b5e64c234e0f68596cf962955..50c5e8b5be3dc5d22028ec1beb5a387e1aeb985c 100644 (file)
@@ -26,8 +26,8 @@ static void __init mmp_init_time(void)
 #ifdef CONFIG_CACHE_TAUROS2
        tauros2_init(0);
 #endif
-       mmp_dt_init_timer();
        of_clk_init(NULL);
+       mmp_dt_init_timer();
 }
 
 static const char *const mmp2_dt_board_compat[] __initconst = {