Commit de79a64d authored by Catalin Marinas's avatar Catalin Marinas

arm64: Initialise the clocks described via DT

This patch adds an arch_initcall() for the of_clk_init() clock
initialisation.
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent e53f2f4b
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <linux/kexec.h> #include <linux/kexec.h>
#include <linux/crash_dump.h> #include <linux/crash_dump.h>
#include <linux/root_dev.h> #include <linux/root_dev.h>
#include <linux/clk-provider.h>
#include <linux/cpu.h> #include <linux/cpu.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/smp.h> #include <linux/smp.h>
...@@ -277,6 +278,13 @@ void __init setup_arch(char **cmdline_p) ...@@ -277,6 +278,13 @@ void __init setup_arch(char **cmdline_p)
#endif #endif
} }
static int __init arm64_of_clk_init(void)
{
of_clk_init(NULL);
return 0;
}
arch_initcall(arm64_of_clk_init);
static DEFINE_PER_CPU(struct cpu, cpu_data); static DEFINE_PER_CPU(struct cpu, cpu_data);
static int __init topology_init(void) static int __init topology_init(void)
......
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