From patchwork Tue Apr 19 15:01:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 1095 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:49:06 -0000 Delivered-To: patches@linaro.org Received: by 10.224.67.148 with SMTP id r20cs73831qai; Tue, 19 Apr 2011 07:55:51 -0700 (PDT) Received: by 10.68.57.42 with SMTP id f10mr8782484pbq.2.1303224950611; Tue, 19 Apr 2011 07:55:50 -0700 (PDT) Received: from mail-px0-f172.google.com (mail-px0-f172.google.com [209.85.212.172]) by mx.google.com with ESMTPS id f9si13832571pbb.143.2011.04.19.07.55.49 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Apr 2011 07:55:50 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=209.85.212.172; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) smtp.mail=shawn.guo@linaro.org Received: by pxi6 with SMTP id 6so9197527pxi.17 for ; Tue, 19 Apr 2011 07:55:49 -0700 (PDT) Received: by 10.68.56.104 with SMTP id z8mr8968852pbp.81.1303224949626; Tue, 19 Apr 2011 07:55:49 -0700 (PDT) Received: from localhost.localdomain ([114.216.153.5]) by mx.google.com with ESMTPS id t6sm3025039pbc.21.2011.04.19.07.55.41 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Apr 2011 07:55:48 -0700 (PDT) From: Shawn Guo To: devicetree-discuss@lists.ozlabs.org Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, Shawn Guo Subject: [PATCH] dt/flattree: Fix return value of early_init_dt_scan_memory Date: Tue, 19 Apr 2011 23:01:09 +0800 Message-Id: <1303225269-10092-1-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.4.1 It fixes the return value of funciont early_init_dt_scan_memory on the success return path. Signed-off-by: Shawn Guo --- 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,