From ed7fcc393d054250261e3754fc80807f8f37ea3b Mon Sep 17 00:00:00 2001 From: Maria Yu Date: Wed, 14 Oct 2020 14:18:14 +0800 Subject: [PATCH] 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 --- drivers/of/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 650c028de779..087f28066cbe 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -1037,7 +1037,7 @@ int __init early_init_dt_scan_memory(unsigned long node, const char *uname, base, base + size); } - return 0; + return 1; } /*