summaryrefslogtreecommitdiffstats
path: root/drivers/net/keystone_net.c
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2015-09-19 16:26:51 +0530
committerTom Rini <trini@konsulko.com>2015-10-22 14:22:24 -0400
commit997a318b3054820bdf4840b9bef465f3c32507dd (patch)
tree764ff9c03084cca3ccde4d6e59ae67f2226d9fd4 /drivers/net/keystone_net.c
parent4657a2d44ed06272c1fb1d6f5b842e93ceddbbb6 (diff)
downloadblackbird-obmc-uboot-997a318b3054820bdf4840b9bef465f3c32507dd.tar.gz
blackbird-obmc-uboot-997a318b3054820bdf4840b9bef465f3c32507dd.zip
driver: net: keystone_net: removing unused code
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>
Diffstat (limited to 'drivers/net/keystone_net.c')
-rw-r--r--drivers/net/keystone_net.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/net/keystone_net.c b/drivers/net/keystone_net.c
index 897d867cdd..5ed29ae917 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)
{
OpenPOWER on IntegriCloud