ARM: dove: move DT boards to SoC-centric clock init
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Sat, 11 May 2013 01:08:07 +0000 (03:08 +0200)
committerJason Cooper <jason@lakedaemon.net>
Wed, 29 May 2013 19:21:05 +0000 (19:21 +0000)
SoC centric clock init for Dove 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-dove/Kconfig
arch/arm/mach-dove/board-dt.c
arch/arm/mach-dove/common.c

index 36469d8..dff7b2f 100644 (file)
@@ -22,8 +22,7 @@ config MACH_CM_A510
 
 config MACH_DOVE_DT
        bool "Marvell Dove Flattened Device Tree"
-       select MVEBU_CLK_CORE
-       select MVEBU_CLK_GATING
+       select DOVE_CLK
        select REGULATOR
        select REGULATOR_FIXED_VOLTAGE
        select USE_OF
index 0b14280..f3755ac 100644 (file)
@@ -10,7 +10,6 @@
 
 #include <linux/init.h>
 #include <linux/clk-provider.h>
-#include <linux/clk/mvebu.h>
 #include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/platform_data/usb-ehci-orion.h>
@@ -49,7 +48,7 @@ static void __init dove_legacy_clk_init(void)
 
 static void __init dove_of_clk_init(void)
 {
-       mvebu_clocks_init();
+       of_clk_init(NULL);
        dove_legacy_clk_init();
 }
 
index e2b5da0..2a9443d 100644 (file)
@@ -9,7 +9,6 @@
  */
 
 #include <linux/clk-provider.h>
-#include <linux/clk/mvebu.h>
 #include <linux/dma-mapping.h>
 #include <linux/init.h>
 #include <linux/of.h>