diff options
Diffstat (limited to 'drivers/net/stmmac/stmmac_main.c')
-rw-r--r-- | drivers/net/stmmac/stmmac_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/stmmac/stmmac_main.c b/drivers/net/stmmac/stmmac_main.c index a02006d57a59..82ebbc0c8839 100644 --- a/drivers/net/stmmac/stmmac_main.c +++ b/drivers/net/stmmac/stmmac_main.c | |||
@@ -258,8 +258,9 @@ static void stmmac_adjust_link(struct net_device *dev) | |||
258 | } else { | 258 | } else { |
259 | ctrl &= ~priv->mac_type->hw.link.port; | 259 | ctrl &= ~priv->mac_type->hw.link.port; |
260 | } | 260 | } |
261 | priv->fix_mac_speed(priv->bsp_priv, | 261 | if (likely(priv->fix_mac_speed)) |
262 | phydev->speed); | 262 | priv->fix_mac_speed(priv->bsp_priv, |
263 | phydev->speed); | ||
263 | break; | 264 | break; |
264 | default: | 265 | default: |
265 | if (netif_msg_link(priv)) | 266 | if (netif_msg_link(priv)) |