Commit 4a32c74e authored by Michal Simek's avatar Michal Simek

ARM: zynq: Move of_clk_init from clock driver

Move of_clk_init() from clock driver to enable
options not to use zynq clock driver.
Use for example fixed clock setting.
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 56880073
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <linux/cpumask.h> #include <linux/cpumask.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/clk/zynq.h> #include <linux/clk/zynq.h>
#include <linux/clocksource.h> #include <linux/clocksource.h>
#include <linux/of_address.h> #include <linux/of_address.h>
...@@ -68,6 +69,7 @@ static void __init zynq_timer_init(void) ...@@ -68,6 +69,7 @@ static void __init zynq_timer_init(void)
zynq_early_slcr_init(); zynq_early_slcr_init();
zynq_clock_init(); zynq_clock_init();
of_clk_init(NULL);
clocksource_of_init(); clocksource_of_init();
} }
......
...@@ -602,8 +602,6 @@ void __init zynq_clock_init(void) ...@@ -602,8 +602,6 @@ void __init zynq_clock_init(void)
of_node_put(slcr); of_node_put(slcr);
of_node_put(np); of_node_put(np);
of_clk_init(NULL);
return; return;
np_err: np_err:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment