]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/dsa/slave.c
net: struct device - replace bus_id with dev_name(), dev_set_name()
[linux-2.6-omap-h63xx.git] / net / dsa / slave.c
index 37616884b8a9c624f85ecf9350b9758e16aa0bfb..7384bad816522639db7ca092959ebd59a5f6f991 100644 (file)
@@ -284,7 +284,7 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent,
        netif_carrier_off(slave_dev);
 
        if (p->phy != NULL) {
-               phy_attach(slave_dev, p->phy->dev.bus_id,
+               phy_attach(slave_dev, dev_name(&p->phy->dev),
                           0, PHY_INTERFACE_MODE_GMII);
 
                p->phy->autoneg = AUTONEG_ENABLE;