aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorChristian Engelmayer <cengelma@gmx.at>2014-05-23 23:33:55 +0200
committerDavid S. Miller <davem@davemloft.net>2014-05-26 00:32:37 -0400
commit587b24a54984f626337d8a6ce2931994c342ded3 (patch)
treed5723ec9910a88a09edf5bd0dcffb62e192f4e08 /drivers/of
parenttg3: Override clock, link aware and link idle mode during NVRAM dump (diff)
downloadlinux-dev-587b24a54984f626337d8a6ce2931994c342ded3.tar.xz
linux-dev-587b24a54984f626337d8a6ce2931994c342ded3.zip
of: mdio: fix compile warning in of_mdiobus_register_phy()
Commit de906af1 (net: phy: make of_set_phy_supported work with genphy driver) removed the last user of variable 'max_speed' in function of_mdiobus_register_phy(), leading to compile warning "unused variable ‘max_speed’ [-Wunused-variable]". Thus remove it. Signed-off-by: Christian Engelmayer <cengelma@gmx.at> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/of_mdio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/of/of_mdio.c b/drivers/of/of_mdio.c
index b85709458639..7c6e277cdd1f 100644
--- a/drivers/of/of_mdio.c
+++ b/drivers/of/of_mdio.c
@@ -46,7 +46,6 @@ static int of_mdiobus_register_phy(struct mii_bus *mdio, struct device_node *chi
struct phy_device *phy;
bool is_c45;
int rc;
- u32 max_speed = 0;
u32 phy_id;
is_c45 = of_device_is_compatible(child,