]> Git Repo - J-u-boot.git/blobdiff - drivers/net/phy/phy.c
net: phy: Replace PHY_ANEG_TIMEOUT with Kconfig symbol
[J-u-boot.git] / drivers / net / phy / phy.c
index 270176cfe6296f36e9c19e39ff1cd18ee9fdc54b..716a1d461115e2e353a568c77c379d822bdbd3ac 100644 (file)
@@ -7,7 +7,6 @@
  *
  * Based loosely off of Linux's PHY Lib
  */
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <log.h>
@@ -251,7 +250,7 @@ int genphy_update_link(struct phy_device *phydev)
                        /*
                         * Timeout reached ?
                         */
-                       if (i > (PHY_ANEG_TIMEOUT / 50)) {
+                       if (i > (CONFIG_PHY_ANEG_TIMEOUT / 50)) {
                                printf(" TIMEOUT !\n");
                                phydev->link = 0;
                                return -ETIMEDOUT;
This page took 0.025772 seconds and 4 git commands to generate.