diff options
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/slave.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 37616884b8a9..7384bad81652 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c | |||
@@ -284,7 +284,7 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent, | |||
284 | netif_carrier_off(slave_dev); | 284 | netif_carrier_off(slave_dev); |
285 | 285 | ||
286 | if (p->phy != NULL) { | 286 | if (p->phy != NULL) { |
287 | phy_attach(slave_dev, p->phy->dev.bus_id, | 287 | phy_attach(slave_dev, dev_name(&p->phy->dev), |
288 | 0, PHY_INTERFACE_MODE_GMII); | 288 | 0, PHY_INTERFACE_MODE_GMII); |
289 | 289 | ||
290 | p->phy->autoneg = AUTONEG_ENABLE; | 290 | p->phy->autoneg = AUTONEG_ENABLE; |