summaryrefslogtreecommitdiff
path: root/arch/arm/mach-exynos/mach-exynos5-dt.c
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2014-03-20 16:49:24 (GMT)
committerKukjin Kim <kgene.kim@samsung.com>2014-03-20 17:00:09 (GMT)
commit8b3e8bbd132279be544a6f4dc22c22d244c98c23 (patch)
tree20b329ba9ad3006c1873691554423d083f43097f /arch/arm/mach-exynos/mach-exynos5-dt.c
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
downloadlinux-8b3e8bbd132279be544a6f4dc22c22d244c98c23.tar.xz
ARM: SAMSUNG: Reorganize calls to reserve memory for MFC
Reorganize code so that "plat/mfc.h" is no more referred from mach-exynos directory. Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos/mach-exynos5-dt.c')
-rw-r--r--arch/arm/mach-exynos/mach-exynos5-dt.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index 37ea261..9586439 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -14,9 +14,9 @@
#include <linux/io.h>
#include <asm/mach/arch.h>
-#include <plat/mfc.h>
#include "common.h"
+#include "mfc.h"
#include "regs-pmu.h"
static void __init exynos5_dt_machine_init(void)
@@ -59,13 +59,7 @@ 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;
-
- /* 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);
+ of_scan_flat_dt(s5p_fdt_alloc_mfc_mem, "samsung,mfc-v6");
#endif
}