mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-24 20:54:24 +08:00
image: fdt: handle coalesced reserve region
Handle in boot_fdt_reserve_region any return value > 0 of lmb_reserve() function; it occurs when coalesced region are found: adjacent reserved region are merged. This patch avoid the error trace: ERROR: reserving fdt memory region failed.. when reserved region are merged (return value = 1). Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
c8087f67f1
commit
e1d7ed3401
@ -71,10 +71,10 @@ static const image_header_t *image_get_fdt(ulong fdt_addr)
|
||||
static void boot_fdt_reserve_region(struct lmb *lmb, uint64_t addr,
|
||||
uint64_t size)
|
||||
{
|
||||
int ret;
|
||||
long ret;
|
||||
|
||||
ret = lmb_reserve(lmb, addr, size);
|
||||
if (!ret) {
|
||||
if (ret >= 0) {
|
||||
debug(" reserving fdt memory region: addr=%llx size=%llx\n",
|
||||
(unsigned long long)addr, (unsigned long long)size);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user