From patchwork Sat Sep 19 10:56:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lokesh Vutla X-Patchwork-Id: 519703 X-Patchwork-Delegate: trini@ti.com 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 CE4C3140216 for ; Sat, 19 Sep 2015 21:01:34 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BE424A74AE; Sat, 19 Sep 2015 13:00:51 +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 LOni-ySwk5AM; Sat, 19 Sep 2015 13:00:51 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B4143A74CB; Sat, 19 Sep 2015 13:00:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 258ABA7480 for ; Sat, 19 Sep 2015 13:00:06 +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 EbfTbiBaiEwG for ; Sat, 19 Sep 2015 13:00:06 +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 bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by theia.denx.de (Postfix) with ESMTPS id 1754FA746D for ; Sat, 19 Sep 2015 12:59:51 +0200 (CEST) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id t8JAxnWc004793; Sat, 19 Sep 2015 05:59:49 -0500 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id t8JAxnZt004739; Sat, 19 Sep 2015 05:59:49 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.224.2; Sat, 19 Sep 2015 05:59:49 -0500 Received: from a0131933.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id t8JAx7Q2003723; Sat, 19 Sep 2015 05:59:47 -0500 From: Lokesh Vutla To: , Date: Sat, 19 Sep 2015 16:26:51 +0530 Message-ID: <1442660216-5919-15-git-send-email-lokeshvutla@ti.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1442660216-5919-1-git-send-email-lokeshvutla@ti.com> References: <1442660216-5919-1-git-send-email-lokeshvutla@ti.com> MIME-Version: 1.0 Cc: nsekhar@ti.com, t-kristo@ti.com Subject: [U-Boot] [PATCH 14/19] driver: net: keystone_net: removing unused code 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Mugunthan V N remove unused code as the same is achieved when configuring sgmii and link status is verifed. Signed-off-by: Mugunthan V N Signed-off-by: Lokesh Vutla --- drivers/net/keystone_net.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/net/keystone_net.c b/drivers/net/keystone_net.c index 897d867..5ed29ae 100644 --- a/drivers/net/keystone_net.c +++ b/drivers/net/keystone_net.c @@ -163,16 +163,6 @@ static void __attribute__((unused)) DEVICE_EMACSL_BASE(eth_priv->slave_port - 1) + CPGMACSL_REG_CTL); } -int keystone_sgmii_link_status(int port) -{ - u32 status = 0; - - status = __raw_readl(SGMII_STATUS_REG(port)); - - return (status & SGMII_REG_STATUS_LOCK) && - (status & SGMII_REG_STATUS_LINK); -} - #ifdef CONFIG_SOC_K2G int keystone_rgmii_config(struct phy_device *phy_dev) {