summaryrefslogtreecommitdiff
path: root/arch/arm/mach-orion5x/board-dt.c
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-04-23 01:26:24 +0400
committerJason Cooper <jason@lakedaemon.net>2014-04-26 18:40:42 +0400
commit98d4db263ebcd32af128ed69acd713113ac16e9b (patch)
tree3c06d20db68d73f2280e7f3a0563d51c7f26cbef /arch/arm/mach-orion5x/board-dt.c
parent2864ed64ec884cfdd61430c9f1b975f9d410c1df (diff)
downloadlinux-98d4db263ebcd32af128ed69acd713113ac16e9b.tar.xz
ARM: orion5x: switch to use the clock driver for DT platforms
This commit moves the Orion5x platforms using the Device Tree to use the recently introduced clock driver for Orion5x. To achieve that, it: * Adds the necessary DT description of the clock. * Selects ORION_CLK to enable the compilation of the clock driver. * Call of_clk_init() instead of the Orion5x-specific clock initialization function. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Link: https://lkml.kernel.org/r/1398202002-28530-21-git-send-email-thomas.petazzoni@free-electrons.com Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/mach-orion5x/board-dt.c')
-rw-r--r--arch/arm/mach-orion5x/board-dt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-orion5x/board-dt.c b/arch/arm/mach-orion5x/board-dt.c
index 7f00897f0dd2..34286ef16320 100644
--- a/arch/arm/mach-orion5x/board-dt.c
+++ b/arch/arm/mach-orion5x/board-dt.c
@@ -16,6 +16,7 @@
#include <linux/of_platform.h>
#include <linux/cpu.h>
#include <linux/mbus.h>
+#include <linux/clk-provider.h>
#include <asm/system_misc.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
@@ -43,6 +44,7 @@ static void orion5x_dt_init_early(void)
static void orion5x_dt_init_time(void)
{
orion5x_timer_init();
+ of_clk_init(NULL);
}
static void __init orion5x_dt_init(void)
@@ -60,9 +62,6 @@ static void __init orion5x_dt_init(void)
*/
orion5x_setup_wins();
- /* Setup root of clk tree */
- clk_init();
-
/*
* Don't issue "Wait for Interrupt" instruction if we are
* running on D0 5281 silicon.