From patchwork Mon Nov 4 00:12:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 288093 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 1B5622C009C for ; Mon, 4 Nov 2013 11:13:37 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8D2774A0C1; Mon, 4 Nov 2013 01:13:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L2iz6VCXkwlp; Mon, 4 Nov 2013 01:13:35 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 261894A0A8; Mon, 4 Nov 2013 01:13:30 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 633C54A0A6 for ; Mon, 4 Nov 2013 01:13:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IKrOBYl9H0qr for ; Mon, 4 Nov 2013 01:13:16 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-yh0-f53.google.com (mail-yh0-f53.google.com [209.85.213.53]) by theia.denx.de (Postfix) with ESMTPS id 394B14A0A5 for ; Mon, 4 Nov 2013 01:13:08 +0100 (CET) Received: by mail-yh0-f53.google.com with SMTP id z20so683345yhz.40 for ; Sun, 03 Nov 2013 16:13:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=W9v7+t2mipJSKknzTM5952CZikJIznuqiwej34BjGg8=; b=1Eo4q3+kXWdgyF+Q/tcMSps16TK/yuTv7qZ0ms0KQZen1IAw7XpepmmmEUfX/7lN7A vjfMXTQvvW1i4epsQwUTO4hcrK5hLYGPdYXeVjRUChVWMUV0KdaUCXEwPQX3fOIWJTZ9 C4WSqILSphmK5GkjIJm+eyMG6HjxWAf5OErA1aNxgU+sspWejYc30R0iEYXahePXIWdh rMoCuIY3ZBGcur/3+LIUQ2im8dnUV0Rce2Syiibvs1QaC2te4E8UufpLI99NT0ypaMFm eYTNe8ClZ0+7oeGORYtHL9NhrmPrbrRmbVpD06vn/llEfKYoPaTLHWMDyeohhgQ4qCme 7D7Q== X-Received: by 10.236.100.144 with SMTP id z16mr11683679yhf.9.1383523987548; Sun, 03 Nov 2013 16:13:07 -0800 (PST) Received: from localhost.localdomain ([201.82.207.53]) by mx.google.com with ESMTPSA id y46sm22916702yhy.18.2013.11.03.16.13.05 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 03 Nov 2013 16:13:07 -0800 (PST) From: Fabio Estevam To: sbabic@denx.de Date: Sun, 3 Nov 2013 22:12:56 -0200 Message-Id: <1383523976-11845-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.1.2 Cc: Fabio Estevam , u-boot@lists.denx.de, sr@denx.de Subject: [U-Boot] [PATCH] titanium: Return the error when cpu_eth_init() fails X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Fabio Estevam When cpu_eth_init() fails we should not return success. Signed-off-by: Fabio Estevam Acked-by: Stefan Roese --- board/freescale/titanium/titanium.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/titanium/titanium.c b/board/freescale/titanium/titanium.c index 6025eb7..9a317bc 100644 --- a/board/freescale/titanium/titanium.c +++ b/board/freescale/titanium/titanium.c @@ -272,7 +272,7 @@ int board_eth_init(bd_t *bis) if (ret) printf("FEC MXC: %s:failed\n", __func__); - return 0; + return ret; } int board_early_init_f(void)