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

Signed-off-by: Shawn Guo <shawn....@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

_______________________________________________
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to