From 3aede2c91c9f386a5a7c0bd9dccbf6e744543039 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Thu, 1 Aug 2013 20:01:37 +0800 Subject: [PATCH] Revert "rk: mem_reserve: fix reserved_base_end when meminfo split by kernel" This reverts commit 54438770201575effabffe6bce9a52e0d440fd60. --- arch/arm/plat-rk/mem_reserve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/plat-rk/mem_reserve.c b/arch/arm/plat-rk/mem_reserve.c index 3e8b50e89d00..4806d7954e65 100644 --- a/arch/arm/plat-rk/mem_reserve.c +++ b/arch/arm/plat-rk/mem_reserve.c @@ -14,7 +14,7 @@ phys_addr_t __init board_mem_reserve_add(char *name, size_t size) size_t align_size = ALIGN_SZ(size, SZ_1M); if(reserved_base_end == 0) - reserved_base_end = meminfo.bank[meminfo.nr_banks - 1].start + meminfo.bank[meminfo.nr_banks - 1].size; + reserved_base_end = meminfo.bank[0].start + meminfo.bank[0].size; reserved_size += align_size; base = reserved_base_end - reserved_size; -- 2.34.1