From patchwork Fri Sep 13 01:03:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 274626 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 A8FE02C03A8 for ; Fri, 13 Sep 2013 11:04:07 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C70D14A062; Fri, 13 Sep 2013 03:03:57 +0200 (CEST) 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 z2JcHLVoe5oX; Fri, 13 Sep 2013 03:03:57 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D108E4A061; Fri, 13 Sep 2013 03:03:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BADE34A062 for ; Fri, 13 Sep 2013 03:03:48 +0200 (CEST) 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 kqo0yLrmGVFW for ; Fri, 13 Sep 2013 03:03:43 +0200 (CEST) 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-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by theia.denx.de (Postfix) with ESMTPS id 196884A060 for ; Fri, 13 Sep 2013 03:03:36 +0200 (CEST) Received: by mail-vb0-f44.google.com with SMTP id e13so457550vbg.3 for ; Thu, 12 Sep 2013 18:03:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=wfE8kuwZb9qRllWmfKmh+wyKSEna4C059QfDn3FbqDs=; b=cLs+1OrnFTz0Hg8Tx33W42wEzUew1Irqk9LqT9Ng0ecGUUZBGDVUnjWSbpIQEtWVC8 gRXg5XTzezRjP7NTM8Wi2zgaBouCE+LxTgejIWX0UogkxVLDo2aWBZdd4BbNB81Myegw sw8tL7isPmOz3fLCs26pljfHlO83GetS8KpVaIY1A8ER/yVxKenrsOVRkkpKgvtbHHBk vsvVR0abcZAEtlm5kY7pBBXfMeRHWZlOdu1hsANLWOOHr/vMmKyHDHnGJR9jHSe3mNCh uKUMQ/Vze2as5Hf85PVKHLXlpW1aktnkAVRCKnQhJsrjK8x1fbtT1lJQNQ/q29EMe4O1 7X/Q== X-Received: by 10.52.230.102 with SMTP id sx6mr7711386vdc.15.1379034215202; Thu, 12 Sep 2013 18:03:35 -0700 (PDT) Received: from localhost.localdomain ([177.194.42.63]) by mx.google.com with ESMTPSA id pu3sm2922616vec.0.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 12 Sep 2013 18:03:34 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Date: Thu, 12 Sep 2013 22:03:22 -0300 Message-Id: <1379034203-4753-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.1.2 Cc: Fabio Estevam , u-boot@lists.denx.de Subject: [U-Boot] [PATCH 1/2] mx6sabresd: Return error if 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 Currently board_eth_init() always return 0, but we should propagate the error when cpu_eth_init() fails. Signed-off-by: Fabio Estevam --- board/freescale/mx6sabresd/mx6sabresd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c index c832bd9..425f734 100644 --- a/board/freescale/mx6sabresd/mx6sabresd.c +++ b/board/freescale/mx6sabresd/mx6sabresd.c @@ -421,7 +421,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)