From patchwork Tue Aug 25 07:22:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 510391 X-Patchwork-Delegate: sjg@chromium.org 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 C0DE81401F0 for ; Tue, 25 Aug 2015 17:20:34 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=TSu4LlWf; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CD21F4B694; Tue, 25 Aug 2015 09:20:31 +0200 (CEST) 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 7WVUGIoZZy-3; Tue, 25 Aug 2015 09:20:31 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 530B54B65A; Tue, 25 Aug 2015 09:20:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 81D504B65F for ; Tue, 25 Aug 2015 09:20:16 +0200 (CEST) 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 GIXFjfWNOaqA for ; Tue, 25 Aug 2015 09:20:16 +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-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by theia.denx.de (Postfix) with ESMTPS id 072804B65A for ; Tue, 25 Aug 2015 09:20:12 +0200 (CEST) Received: by pdbmi9 with SMTP id mi9so63259603pdb.3 for ; Tue, 25 Aug 2015 00:20:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=JmzTG6KjcFZgEyu4qYS1f+eRhgEqbKp6stu+5+5IAEg=; b=TSu4LlWfq3JCbDF+hspfSlKPrEI60j4FixGLAD75gTt2me06vv4zHTUI3ouIklHwOI mbbSv18e7tEMAi7FTXICGmKNRCnlN5fuVgvnJKlp31UvZywOjp45AUJlKV2lIZBDioU1 5QgN3fKzwtMz6EAklIKvYc+UpOJgELlzyvqEY96taM3wp8QRKmUYstr+4guGY4XfwDwu orLCbnppHCJAnWfmPcjLCeqhbN4TrgzOiUtW/Et4ohpIClh3rXHk3hNHz5uI420+FUTy NDAmGWJ/ijatWcV1LZBvHPJSlnw9BI9JGq0aduN8Dl+06tTnYzLLKzs07IB2oT+ZQoZa dPOA== X-Received: by 10.70.140.139 with SMTP id rg11mr53409004pdb.34.1440487211201; Tue, 25 Aug 2015 00:20:11 -0700 (PDT) Received: from ala-d2121-lx1.wrs.com (unknown-157-139.windriver.com. [147.11.157.139]) by smtp.gmail.com with ESMTPSA id wj8sm8911367pab.3.2015.08.25.00.20.10 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Aug 2015 00:20:10 -0700 (PDT) From: Bin Meng To: Simon Glass , Joe Hershberger , Tom Rini , U-Boot Mailing List Date: Tue, 25 Aug 2015 00:22:21 -0700 Message-Id: <1440487347-10517-3-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1440487347-10517-1-git-send-email-bmeng.cn@gmail.com> References: <1440487347-10517-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH 3/9] dm: eth: Do not call board_eth_init() or cpu_eth_init() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" With driver model, board_eth_init() or cpu_eth_init() is not needed. Remove the call to these in eth_common_init(). Signed-off-by: Bin Meng --- net/eth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/eth.c b/net/eth.c index d3ec8d6..0b4b08a 100644 --- a/net/eth.c +++ b/net/eth.c @@ -96,6 +96,7 @@ static void eth_common_init(void) phy_init(); #endif +#ifndef CONFIG_DM_ETH /* * If board-specific initialization exists, call it. * If not, call a CPU-specific one @@ -109,6 +110,7 @@ static void eth_common_init(void) } else { printf("Net Initialization Skipped\n"); } +#endif } #ifdef CONFIG_DM_ETH