Add .eqos_get_enetaddr callback defined as eqos_null_ops() to avoid
illegal access.

Fixes: a624251461bf ("net: dwc_eth_qos: introduce eqos hook eqos_get_enetaddr")

Signed-off-by: Patrice Chotard <patrice.chot...@foss.st.com>
---

 drivers/net/dwc_eth_qos.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c
index c1f2391d63..09d95e4bc3 100644
--- a/drivers/net/dwc_eth_qos.c
+++ b/drivers/net/dwc_eth_qos.c
@@ -1609,6 +1609,7 @@ static struct eqos_ops eqos_tegra186_ops = {
        .eqos_calibrate_pads = eqos_calibrate_pads_tegra186,
        .eqos_disable_calibration = eqos_disable_calibration_tegra186,
        .eqos_set_tx_clk_speed = eqos_set_tx_clk_speed_tegra186,
+       .eqos_get_enetaddr = eqos_null_ops,
        .eqos_get_tick_clk_rate = eqos_get_tick_clk_rate_tegra186
 };
 
-- 
2.25.1

Reply via email to