summaryrefslogtreecommitdiff
path: root/board/amlogic/odroid-c2/odroid-c2.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/amlogic/odroid-c2/odroid-c2.c')
-rw-r--r--board/amlogic/odroid-c2/odroid-c2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/amlogic/odroid-c2/odroid-c2.c b/board/amlogic/odroid-c2/odroid-c2.c
index ca9c13bcc1..611155d3e5 100644
--- a/board/amlogic/odroid-c2/odroid-c2.c
+++ b/board/amlogic/odroid-c2/odroid-c2.c
@@ -51,7 +51,7 @@ int misc_init_r(void)
eth_env_set_enetaddr("ethaddr", mac_addr);
}
- if (!getenv("serial#")) {
+ if (!env_get("serial#")) {
len = meson_sm_read_efuse(EFUSE_SN_OFFSET, serial,
EFUSE_SN_SIZE);
if (len == EFUSE_SN_SIZE)