[PATCH] dt/flattree: Fix return value of early_init_dt_scan_memory

Shawn Guo shawn.guo at linaro.org
Wed Apr 20 01:01:09 EST 2011


It fixes the return value of funciont early_init_dt_scan_memory on
the success return path.

Signed-off-by: Shawn Guo <shawn.guo at linaro.org>
---
 drivers/of/fdt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index c9db49c..387336d 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -659,7 +659,7 @@ int __init early_init_dt_scan_memory(unsigned long node, const char *uname,
 		early_init_dt_add_memory_arch(base, size);
 	}
 
-	return 0;
+	return 1;
 }
 
 int __init early_init_dt_scan_chosen(unsigned long node, const char *uname,
-- 
1.7.4.1



More information about the devicetree-discuss mailing list