diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c index 7652ab33dd99..624f01c2f31c 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c @@ -36,7 +36,9 @@ static void meson6_dwmac_fix_mac_speed(void *priv, unsigned int speed) { struct meson_dwmac *dwmac = priv; unsigned int val; - +#ifdef CONFIG_AMLOGIC_ETH_PRIVE + return; +#endif val = readl(dwmac->reg); switch (speed) {