From patchwork Sun Oct 2 17:31:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 117353 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 3496F1007D6 for ; Mon, 3 Oct 2011 04:31:18 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E4A9928112; Sun, 2 Oct 2011 19:31:16 +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 zFAzSxHwbK3U; Sun, 2 Oct 2011 19:31:16 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1C1BB2808A; Sun, 2 Oct 2011 19:31:15 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 762A72808A for ; Sun, 2 Oct 2011 19:31:13 +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 NhdGlD57Md3w for ; Sun, 2 Oct 2011 19:31:12 +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-gy0-f172.google.com (mail-gy0-f172.google.com [209.85.160.172]) by theia.denx.de (Postfix) with ESMTPS id 74D182807C for ; Sun, 2 Oct 2011 19:31:11 +0200 (CEST) Received: by gyd12 with SMTP id 12so2779058gyd.3 for ; Sun, 02 Oct 2011 10:31:10 -0700 (PDT) Received: by 10.236.161.10 with SMTP id v10mr6204644yhk.88.1317576670123; Sun, 02 Oct 2011 10:31:10 -0700 (PDT) Received: from localhost.localdomain ([189.5.19.204]) by mx.google.com with ESMTPS id l42sm11849807yhj.12.2011.10.02.10.31.08 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 02 Oct 2011 10:31:09 -0700 (PDT) From: Fabio Estevam To: u-boot@lists.denx.de Date: Sun, 2 Oct 2011 14:31:03 -0300 Message-Id: <1317576663-17206-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.1 Cc: Fabio Estevam Subject: [U-Boot] [PATCH] mx5: soc.c: Fix Codyng Style X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 Do not declare extern in c files as pointed out by checkpatch. Signed-off-by: Fabio Estevam --- arch/arm/cpu/armv7/mx5/soc.c | 10 ++-------- arch/arm/include/asm/arch-mx5/sys_proto.h | 10 ++++++++++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/arch/arm/cpu/armv7/mx5/soc.c b/arch/arm/cpu/armv7/mx5/soc.c index c6106d5..cf12ba8 100644 --- a/arch/arm/cpu/armv7/mx5/soc.c +++ b/arch/arm/cpu/armv7/mx5/soc.c @@ -26,6 +26,8 @@ #include #include #include +#include + #include #include @@ -117,14 +119,6 @@ int print_cpuinfo(void) } #endif -/* - * Initializes on-chip ethernet controllers. - * to override, implement board_eth_init() - */ -#if defined(CONFIG_FEC_MXC) -extern int fecmxc_initialize(bd_t *bis); -#endif - int cpu_eth_init(bd_t *bis) { int rc = -ENODEV; diff --git a/arch/arm/include/asm/arch-mx5/sys_proto.h b/arch/arm/include/asm/arch-mx5/sys_proto.h index ce63675..789558e 100644 --- a/arch/arm/include/asm/arch-mx5/sys_proto.h +++ b/arch/arm/include/asm/arch-mx5/sys_proto.h @@ -28,4 +28,14 @@ u32 get_cpu_rev(void); #define is_soc_rev(rev) ((get_cpu_rev() & 0xFF) - rev) void sdelay(unsigned long); void set_chipselect_size(int const); + +/* + * Initializes on-chip ethernet controllers. + * to override, implement board_eth_init() + */ +#if defined(CONFIG_FEC_MXC) +int fecmxc_initialize(bd_t *bis); + +#endif + #endif