diff mbox

[U-Boot,14/19] driver: net: keystone_net: removing unused code

Message ID 1442660216-5919-15-git-send-email-lokeshvutla@ti.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Lokesh Vutla Sept. 19, 2015, 10:56 a.m. UTC
From: Mugunthan V N <mugunthanvnm@ti.com>

remove unused code as the same is achieved when configuring sgmii
and link status is verifed.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 drivers/net/keystone_net.c | 10 ----------
 1 file changed, 10 deletions(-)

Comments

Tom Rini Oct. 22, 2015, 9:22 p.m. UTC | #1
On Sat, Sep 19, 2015 at 04:26:51PM +0530, Lokesh Vutla wrote:

> From: Mugunthan V N <mugunthanvnm@ti.com>
> 
> remove unused code as the same is achieved when configuring sgmii
> and link status is verifed.
> 
> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

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)
 {