From a2e3774e54158a44adf44c73d718906581ccc0bc Mon Sep 17 00:00:00 2001 From: MohanKumar Kumar Date: Thu, 10 Mar 2022 10:47:38 -0800 Subject: [PATCH] drivers: eth: stellaris: Fix build error Use the correct variable name in eth_stellaris, which fixes the build error. Signed-off-by: MohanKumar Kumar --- drivers/ethernet/eth_stellaris.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ethernet/eth_stellaris.c b/drivers/ethernet/eth_stellaris.c index d8df3af0591..c5af9a292f8 100644 --- a/drivers/ethernet/eth_stellaris.c +++ b/drivers/ethernet/eth_stellaris.c @@ -293,7 +293,7 @@ static struct net_stats_eth *eth_stellaris_stats(const struct device *dev) { struct eth_stellaris_runtime *dev_data = dev->data; - return &data->stats; + return &dev_data->stats; } #endif