]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
net: stmmac: Silence PTP init errors on hw without PTP
[~andy/linux] / drivers / net / ethernet / stmicro / stmmac / stmmac_main.c
index d93aa87408c222760cc0ce3c40030917051b7b0c..a395bb24cdf2c4b2ba5cd255ed8354dbe44552c0 100644 (file)
@@ -1635,7 +1635,7 @@ static int stmmac_hw_setup(struct net_device *dev)
        stmmac_mmc_setup(priv);
 
        ret = stmmac_init_ptp(priv);
-       if (ret)
+       if (ret && ret != -EOPNOTSUPP)
                pr_warn("%s: failed PTP initialisation\n", __func__);
 
 #ifdef CONFIG_STMMAC_DEBUG_FS