diff options
author | Thomas Abraham <thomas.ab@samsung.com> | 2013-04-05 15:17:47 +0900 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-04-08 23:54:48 +0900 |
commit | 296f3f2c9322480400338f71d8c118107f9a7f20 (patch) | |
tree | a288e1f06896fcf0a9edb2b0c4a7962c1ff6e106 /arch | |
parent | 688f7d8c9fef621c53c7b385ff6baf62bcb6b077 (diff) | |
download | linux-3.10-296f3f2c9322480400338f71d8c118107f9a7f20.tar.gz linux-3.10-296f3f2c9322480400338f71d8c118107f9a7f20.tar.bz2 linux-3.10-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')
-rw-r--r-- | arch/arm/mach-exynos/common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index 64e56492bfd..02e35abd136 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(); } } |