Use priv->plat->fpe_cfg instead of fpe_cfg to avoid fpe_cfg undeclared

Fixes: b102a918b11cb ("net: stmmac: add ethtool preempt support")
Signed-off-by: Xiaolei Wang <[email protected]>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 
b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
index e483caafbdda..7e396b6976e6 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
@@ -1221,7 +1221,7 @@ static int stmmac_set_preempt(struct net_device *dev, 
struct ethtool_fp *fpcmd)
                priv->plat->fpe_cfg->enable = 1;
                priv->fp_enabled_admin = 1;
        }
-       stmmac_fpe_configure(priv, priv->ioaddr, fpe_cfg,
+       stmmac_fpe_configure(priv, priv->ioaddr, priv->plat->fpe_cfg,
                             priv->plat->tx_queues_to_use,
                             priv->plat->rx_queues_to_use, fpe.enable, &fpe);
 
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13727): 
https://lists.yoctoproject.org/g/linux-yocto/message/13727
Mute This Topic: https://lists.yoctoproject.org/mt/105100743/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to