summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos
diff options
context:
space:
mode:
authorThomas Abraham <thomas.ab@samsung.com>2013-04-05 08:17:47 +0200
committerKukjin Kim <kgene.kim@samsung.com>2013-04-08 16:54:48 +0200
commit296f3f2c9322480400338f71d8c118107f9a7f20 (patch)
treea288e1f06896fcf0a9edb2b0c4a7962c1ff6e106 /arch/arm/mach-exynos
parentclk: exynos5250: Fix divider values for sclk_mmc{0,1,2,3} (diff)
downloadlinux-296f3f2c9322480400338f71d8c118107f9a7f20.tar.xz
linux-296f3f2c9322480400338f71d8c118107f9a7f20.zip
ARM: EXYNOS: fix compilation error introduced due to common clock migration
The functions exynos4_clk_init and exynos4_clk_register_fixed_ext are applicable only on Exynos4 non-dt platforms. But when building Exynos5 platforms without including Exynos4 platforms, the following errors show up. arch/arm/mach-exynos/built-in.o: In function `exynos_init_time': arch/arm/mach-exynos/common.c:446: undefined reference to `exynos4_clk_init' arch/arm/mach-exynos/common.c:447: undefined reference to `exynos4_clk_register_fixed_ext' Fix this compilation errors by marking these calls as Exynos4 specific. Signed-off-by: Thomas Abraham <thomas.ab@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r--arch/arm/mach-exynos/common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c
index 64e56492bfde..02e35abd136b 100644
--- a/arch/arm/mach-exynos/common.c
+++ b/arch/arm/mach-exynos/common.c
@@ -408,8 +408,10 @@ void __init exynos_init_time(void)
#endif
} else {
/* todo: remove after migrating legacy E4 platforms to dt */
+#ifdef CONFIG_ARCH_EXYNOS4
exynos4_clk_init(NULL);
exynos4_clk_register_fixed_ext(xxti_f, xusbxti_f);
+#endif
mct_init();
}
}