diff options
Diffstat (limited to 'drivers/net/phy/mdio_bus.c')
-rw-r--r-- | drivers/net/phy/mdio_bus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c index d0ed1ef284a8..6afd35f62d77 100644 --- a/drivers/net/phy/mdio_bus.c +++ b/drivers/net/phy/mdio_bus.c | |||
@@ -97,7 +97,7 @@ int mdiobus_register(struct mii_bus *bus) | |||
97 | bus->dev.parent = bus->parent; | 97 | bus->dev.parent = bus->parent; |
98 | bus->dev.class = &mdio_bus_class; | 98 | bus->dev.class = &mdio_bus_class; |
99 | bus->dev.groups = NULL; | 99 | bus->dev.groups = NULL; |
100 | memcpy(bus->dev.bus_id, bus->id, MII_BUS_ID_SIZE); | 100 | dev_set_name(&bus->dev, bus->id); |
101 | 101 | ||
102 | err = device_register(&bus->dev); | 102 | err = device_register(&bus->dev); |
103 | if (err) { | 103 | if (err) { |
@@ -191,7 +191,7 @@ struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr) | |||
191 | 191 | ||
192 | phydev->dev.parent = bus->parent; | 192 | phydev->dev.parent = bus->parent; |
193 | phydev->dev.bus = &mdio_bus_type; | 193 | phydev->dev.bus = &mdio_bus_type; |
194 | snprintf(phydev->dev.bus_id, BUS_ID_SIZE, PHY_ID_FMT, bus->id, addr); | 194 | dev_set_name(&phydev->dev, PHY_ID_FMT, bus->id, addr); |
195 | 195 | ||
196 | phydev->bus = bus; | 196 | phydev->bus = bus; |
197 | 197 | ||