Commit b8000ae8c621994df0b1c79db6d536d183599cb8
Committed by
Lokesh Vutla
1 parent
e868e54dc9
Exists in
v2015.07-smarct4x
and in
3 other branches
drivers: net: keystone_net: remove unused code
phy_find_by_mask() is not used by any of the platform which uses keystone_net driver, so removing the unused code. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Showing 1 changed file with 1 additions and 6 deletions Side-by-side Diff
drivers/net/keystone_net.c
... | ... | @@ -586,15 +586,10 @@ |
586 | 586 | #endif |
587 | 587 | |
588 | 588 | /* Create phy device and bind it with driver */ |
589 | -#ifdef CONFIG_KSNET_MDIO_PHY_CONFIG_ENABLE | |
590 | 589 | phy_dev = phy_connect(mdio_bus, eth_priv->phy_addr, |
591 | 590 | dev, eth_priv->phy_if); |
592 | 591 | phy_config(phy_dev); |
593 | -#else | |
594 | - phy_dev = phy_find_by_mask(mdio_bus, 1 << eth_priv->phy_addr, | |
595 | - eth_priv->phy_if); | |
596 | - phy_dev->dev = dev; | |
597 | -#endif | |
592 | + | |
598 | 593 | eth_priv->phy_dev = phy_dev; |
599 | 594 | |
600 | 595 | return 0; |