ARC: time: move time_init() out of the driver
authorVineet Gupta <vgupta@synopsys.com>
Mon, 31 Oct 2016 20:26:25 +0000 (13:26 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 30 Nov 2016 19:54:25 +0000 (11:54 -0800)
to allow future git mv of the driver into drivers/clocksource

Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/setup.c
arch/arc/kernel/time.c

index c6914acb68a9188d8c1a71e686014cbb8d82d757..3093fa898a236a1b6ae18757bbaf3f954c49dc26 100644 (file)
@@ -10,6 +10,8 @@
 #include <linux/fs.h>
 #include <linux/delay.h>
 #include <linux/root_dev.h>
+#include <linux/clk-provider.h>
+#include <linux/clocksource.h>
 #include <linux/console.h>
 #include <linux/module.h>
 #include <linux/cpu.h>
@@ -449,6 +451,15 @@ void __init setup_arch(char **cmdline_p)
        arc_unwind_init();
 }
 
+/*
+ * Called from start_kernel() - boot CPU only
+ */
+void __init time_init(void)
+{
+       of_clk_init(NULL);
+       clocksource_probe();
+}
+
 static int __init customize_machine(void)
 {
        if (machine_desc->init_machine)
index 4d0c75b86b100ecc3f210c6df1d19a024daa9668..417d32e031d39d770476048f48735a67a1a49ad6 100644 (file)
@@ -361,12 +361,3 @@ static int __init arc_of_timer_init(struct device_node *np)
        return ret;
 }
 CLOCKSOURCE_OF_DECLARE(arc_clkevt, "snps,arc-timer", arc_of_timer_init);
-
-/*
- * Called from start_kernel() - boot CPU only
- */
-void __init time_init(void)
-{
-       of_clk_init(NULL);
-       clocksource_probe();
-}