fdt: Add correct return for early_init_dt_scan_memory

For currently if return 0 it will search the whole
device tree blob for all device type memory. It will
affect the unnecessary boot up time.

Change-Id: I688b54eda224b744bbc7e706f8b70cccdf8cc38c
Signed-off-by: Maria Yu <aiquny@codeaurora.org>
This commit is contained in:
Maria Yu 2020-10-14 14:18:14 +08:00
commit ed7fcc393d

View file

@ -1037,7 +1037,7 @@ int __init early_init_dt_scan_memory(unsigned long node, const char *uname,
base, base + size);
}
return 0;
return 1;
}
/*