Skip to contentSkip to conversation

ARM: EXYNOS: fix compilation error introduced due to common clock migration

PATCH New Kukjin Kim 1 participant 1 message Apr 4, 2013

Subsystems (3)
lore
Share & tools
lore

Kukjin Kim

author
#0 lore raw

PATCH 1/1 ARM: EXYNOS: fix compilation error introduced due to common clock migration

From: Thomas Abraham <[email protected]>

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.

---
 arch/arm/mach-exynos/common.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-exynos/common.c +2 -0
index 9cd857e..a8570bf 100644
@@ -443,8 +443,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();
 	}
 }
Signature · 1 line
1.7.4.4