summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2013-02-08 12:18:15 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2013-03-20 16:46:43 +0000
commitde79a64d61ed3f7ccec9f9661fab2f3e97256243 (patch)
treeb5906eb4527b88c3ec4a12010c7f0e73d148192c
parente53f2f4b570d85c7208dfc97de54db1296b88207 (diff)
downloadop-kernel-dev-de79a64d61ed3f7ccec9f9661fab2f3e97256243.zip
op-kernel-dev-de79a64d61ed3f7ccec9f9661fab2f3e97256243.tar.gz
arm64: Initialise the clocks described via DT
This patch adds an arch_initcall() for the of_clk_init() clock initialisation. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r--arch/arm64/kernel/setup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
index 113db86..9c023d7 100644
--- a/arch/arm64/kernel/setup.c
+++ b/arch/arm64/kernel/setup.c
@@ -32,6 +32,7 @@
#include <linux/kexec.h>
#include <linux/crash_dump.h>
#include <linux/root_dev.h>
+#include <linux/clk-provider.h>
#include <linux/cpu.h>
#include <linux/interrupt.h>
#include <linux/smp.h>
@@ -277,6 +278,13 @@ void __init setup_arch(char **cmdline_p)
#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 int __init topology_init(void)
OpenPOWER on IntegriCloud