summaryrefslogtreecommitdiff
path: root/board/cadence/xtfpga/xtfpga.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/cadence/xtfpga/xtfpga.c')
-rw-r--r--board/cadence/xtfpga/xtfpga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/cadence/xtfpga/xtfpga.c b/board/cadence/xtfpga/xtfpga.c
index 0265e9bb36..83244c3ad4 100644
--- a/board/cadence/xtfpga/xtfpga.c
+++ b/board/cadence/xtfpga/xtfpga.c
@@ -93,7 +93,7 @@ int misc_init_r(void)
x = (*(volatile u32 *)CONFIG_SYS_FPGAREG_DIPSW)
& FPGAREG_MAC_MASK;
sprintf(&s[15], "%02x", x);
- setenv("ethaddr", s);
+ env_set("ethaddr", s);
}
#endif /* CONFIG_CMD_NET */