ip17xx: correct aneg_done return value
[openwrt/openwrt.git] / target / linux / generic / files / drivers / net / phy / ip17xx.c
index a4fe53dc5bdd1177121a2980a6245ea9ae080174..dbb867e30ea85c3de19f2b5bf9f85d80c20b8dda 100644 (file)
@@ -1334,7 +1334,7 @@ static int ip17xx_config_aneg(struct phy_device *pdev)
 
 static int ip17xx_aneg_done(struct phy_device *pdev)
 {
-       return BMSR_ANEGCOMPLETE;
+       return 1;       /* Return any positive value */
 }
 
 static int ip17xx_update_link(struct phy_device *pdev)