ARM: shmobile: kzm9d: Use common clock framework
authorTakashi Yoshii <takasi-y@ops.dti.ne.jp>
Tue, 8 Oct 2013 05:34:03 +0000 (14:34 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 4 Feb 2014 01:17:55 +0000 (10:17 +0900)
Use common clock framework version of clock
 drivers/clk/shmobile/clk-emev2.c
instead of sh-clkfwk version
 arch/arm/mach-shmobile/clock-emev2.c
when it is configured as a part of multi-platform.

Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-kzm9d-reference.c

index 054d8d5c8fc1a5b743962e0c0ee6be920e9f981d..853003c8988a5bec8fafa21ab74804198267d604 100644 (file)
 
 #include <linux/init.h>
 #include <linux/of_platform.h>
+#include <linux/clk-provider.h>
 #include <mach/emev2.h>
 #include <mach/common.h>
 #include <asm/mach/arch.h>
 
 static void __init kzm9d_add_standard_devices(void)
 {
-       if (!IS_ENABLED(CONFIG_COMMON_CLK))
-               emev2_clock_init();
-
+       of_clk_init(NULL);
        of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }