net: mv643xx_eth: Add missing phy_addr_set in DT mode
[cascardo/linux.git] / drivers / net / ethernet / marvell / mv643xx_eth.c
index 4cfae6c..00cd36e 100644 (file)
@@ -2890,6 +2890,7 @@ static int mv643xx_eth_probe(struct platform_device *pdev)
                                         PHY_INTERFACE_MODE_GMII);
                if (!mp->phy)
                        err = -ENODEV;
+               phy_addr_set(mp, mp->phy->addr);
        } else if (pd->phy_addr != MV643XX_ETH_PHY_NONE) {
                mp->phy = phy_scan(mp, pd->phy_addr);