aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mv643xx_eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/mv643xx_eth.c')
-rw-r--r--drivers/net/mv643xx_eth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c
index 6d3da78b7ad5..b4850cf2a8ce 100644
--- a/drivers/net/mv643xx_eth.c
+++ b/drivers/net/mv643xx_eth.c
@@ -2412,10 +2412,10 @@ static void set_params(struct mv643xx_eth_private *mp,
2412 else 2412 else
2413 uc_addr_get(mp, dev->dev_addr); 2413 uc_addr_get(mp, dev->dev_addr);
2414 2414
2415 if (pd->phy_addr == -1) { 2415 if (pd->phy_addr == MV643XX_ETH_PHY_NONE) {
2416 mp->phy_addr = -1; 2416 mp->phy_addr = -1;
2417 } else { 2417 } else {
2418 if (pd->force_phy_addr || pd->phy_addr) { 2418 if (pd->phy_addr != MV643XX_ETH_PHY_ADDR_DEFAULT) {
2419 mp->phy_addr = pd->phy_addr & 0x3f; 2419 mp->phy_addr = pd->phy_addr & 0x3f;
2420 phy_addr_set(mp, mp->phy_addr); 2420 phy_addr_set(mp, mp->phy_addr);
2421 } else { 2421 } else {