Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
                if (phydev->speed != priv->speed) {
                        new_state = true;
                        switch (phydev->speed) {
-                       case 1000:
+                       case SPEED_1000:
                                if (priv->plat->has_gmac ||
                                    priv->plat->has_gmac4)
                                        ctrl &= ~priv->hw->link.port;
                                break;
-                       case 100:
+                       case SPEED_100:
                                if (priv->plat->has_gmac ||
                                    priv->plat->has_gmac4) {
                                        ctrl |= priv->hw->link.port;
                                        ctrl &= ~priv->hw->link.port;
                                }
                                break;
-                       case 10:
+                       case SPEED_10:
                                if (priv->plat->has_gmac ||
                                    priv->plat->has_gmac4) {
                                        ctrl |= priv->hw->link.port;