The patch updates the exynos5 memory reservation to reserve memory for mfc-v7 also in addition to v6. Signed-off-by: Arun Kumar K <arun.kk@xxxxxxxxxxx> --- arch/arm/mach-exynos/mach-exynos5-dt.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c index f874b77..fdb6181 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -60,13 +60,17 @@ static char const *exynos5_dt_compat[] __initdata = { static void __init exynos5_reserve(void) { #ifdef CONFIG_S5P_DEV_MFC - struct s5p_mfc_dt_meminfo mfc_mem; + int i; + struct s5p_mfc_dt_meminfo mfc_mem[] = { + {.compatible = "samsung,mfc-v6"}, + {.compatible = "samsung,mfc-v7"}, + }; /* Reserve memory for MFC only if it's available */ - mfc_mem.compatible = "samsung,mfc-v6"; - if (of_scan_flat_dt(s5p_fdt_find_mfc_mem, &mfc_mem)) - s5p_mfc_reserve_mem(mfc_mem.roff, mfc_mem.rsize, mfc_mem.loff, - mfc_mem.lsize); + for (i = 0; i < ARRAY_SIZE(mfc_mem); i++) + if (of_scan_flat_dt(s5p_fdt_find_mfc_mem, &mfc_mem[i])) + s5p_mfc_reserve_mem(mfc_mem[i].roff, mfc_mem[i].rsize, + mfc_mem[i].loff, mfc_mem[i].lsize); #endif } -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html