]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
driver: net: keystone_net: removing unused code
authorMugunthan V N <mugunthanvnm@ti.com>
Sat, 19 Sep 2015 10:56:51 +0000 (16:26 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2015 18:22:24 +0000 (14:22 -0400)
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

index 897d867cdd48813b3864f18cd1e62507ddde0449..5ed29ae9171c1d737c7975c7f28c1ef40932a390 100644 (file)
@@ -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)
 {