Skip to content

Commit

Permalink
of/mdio: fix fixed link bus name
Browse files Browse the repository at this point in the history
Since 9e6c643 (phy/fixed: use an unique MDIO bus name) the name of the fixed
PHY bus is "fixed-0". Teach of_phy_connect_fixed_link() the new name.

Tested on a P1020RDB PowerPC system.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
  • Loading branch information
Baruch Siach authored and Rob Herring committed Feb 27, 2012
1 parent d022bbc commit e5c7d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/of/of_mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ struct phy_device *of_phy_connect_fixed_link(struct net_device *dev,
if (!phy_id || sz < sizeof(*phy_id))
return NULL;

sprintf(bus_id, PHY_ID_FMT, "0", be32_to_cpu(phy_id[0]));
sprintf(bus_id, PHY_ID_FMT, "fixed-0", be32_to_cpu(phy_id[0]));

phy = phy_connect(dev, bus_id, hndlr, 0, iface);
return IS_ERR(phy) ? NULL : phy;
Expand Down

0 comments on commit e5c7d1f

Please sign in to comment.