aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorKukjin Kim <kgene.kim@samsung.com>2012-12-06 03:02:44 -0500
committerKukjin Kim <kgene.kim@samsung.com>2012-12-18 22:00:25 -0500
commitade7ffbb9b6f2ab65e69496bc4076e215e2cd8ba (patch)
tree917c42855cf1e18699c3296cb6ba0a29221b9b14 /arch
parent752451f01c4567b506bf4343082682dbb8fb30dd (diff)
ARM: EXYNOS: fix build error when MFC is not selected
This fixes following: arch/arm/mach-exynos/built-in.o: In function `exynos5_reserve': arch/arm/mach-exynos/mach-exynos5-dt.c:177: undefined reference to `s5p_fdt_find_mfc_mem' arch/arm/mach-exynos/mach-exynos5-dt.c:177: undefined reference to `s5p_fdt_find_mfc_mem' arch/arm/mach-exynos/mach-exynos5-dt.c:178: undefined reference to `s5p_mfc_reserve_mem' Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-exynos/mach-exynos5-dt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index f038c8cadca4..e99d3d8f2bcf 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -163,6 +163,7 @@ static char const *exynos5_dt_compat[] __initdata = {
163 163
164static void __init exynos5_reserve(void) 164static void __init exynos5_reserve(void)
165{ 165{
166#ifdef CONFIG_S5P_DEV_MFC
166 struct s5p_mfc_dt_meminfo mfc_mem; 167 struct s5p_mfc_dt_meminfo mfc_mem;
167 168
168 /* Reserve memory for MFC only if it's available */ 169 /* Reserve memory for MFC only if it's available */
@@ -170,6 +171,7 @@ static void __init exynos5_reserve(void)
170 if (of_scan_flat_dt(s5p_fdt_find_mfc_mem, &mfc_mem)) 171 if (of_scan_flat_dt(s5p_fdt_find_mfc_mem, &mfc_mem))
171 s5p_mfc_reserve_mem(mfc_mem.roff, mfc_mem.rsize, mfc_mem.loff, 172 s5p_mfc_reserve_mem(mfc_mem.roff, mfc_mem.rsize, mfc_mem.loff,
172 mfc_mem.lsize); 173 mfc_mem.lsize);
174#endif
173} 175}
174 176
175DT_MACHINE_START(EXYNOS5_DT, "SAMSUNG EXYNOS5 (Flattened Device Tree)") 177DT_MACHINE_START(EXYNOS5_DT, "SAMSUNG EXYNOS5 (Flattened Device Tree)")