]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: kirkwood: move DT boards to SoC-centric clock init
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Sat, 11 May 2013 01:08:08 +0000 (03:08 +0200)
committerJason Cooper <jason@lakedaemon.net>
Wed, 29 May 2013 19:21:13 +0000 (19:21 +0000)
SoC centric clock init for Kirkwood can be used by calling of_clk_init.
Use it and get rid of mvebu_clocks_init.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-kirkwood/Kconfig
arch/arm/mach-kirkwood/board-dt.c

index 7509a89af96704e32b318c787cdb8e3c0fa04e99..79ee9f25760fede8d7ceed2030d127289252476f 100644 (file)
@@ -134,13 +134,12 @@ comment "Device tree entries"
 
 config ARCH_KIRKWOOD_DT
        bool "Marvell Kirkwood Flattened Device Tree"
+       select KIRKWOOD_CLK
        select POWER_SUPPLY
        select POWER_RESET
        select POWER_RESET_GPIO
        select REGULATOR
        select REGULATOR_FIXED_VOLTAGE
-       select MVEBU_CLK_CORE
-       select MVEBU_CLK_GATING
        select USE_OF
        help
          Say 'Y' here if you want your kernel to support the
index e9647b80cb590d9d0131b9542a5e476da9cad459..2f695e5b1ec77e3b07bbd46096a68718ed723a20 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/clk-provider.h>
-#include <linux/clk/mvebu.h>
 #include <linux/kexec.h>
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
@@ -77,7 +76,7 @@ static void __init kirkwood_legacy_clk_init(void)
 
 static void __init kirkwood_of_clk_init(void)
 {
-       mvebu_clocks_init();
+       of_clk_init(NULL);
        kirkwood_legacy_clk_init();
 }