Skip to content

Commit

Permalink
arm64: Initialise the clocks described via DT
Browse files Browse the repository at this point in the history
This patch adds an arch_initcall() for the of_clk_init() clock
initialisation.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
  • Loading branch information
Catalin Marinas committed Mar 20, 2013
1 parent e53f2f4 commit de79a64
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/arm64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit de79a64

Please sign in to comment.