]> git.sur5r.net Git - u-boot/blobdiff - env/flags.c
sunxi: DT: H5: update board .dts files from Linux
[u-boot] / env / flags.c
index 85a344fa517f1289c3605c5768bc573eff36b0d1..79dccc05fe27e60964f6e8948c4c6827e886ee2d 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2012
  * Joe Hershberger, National Instruments, joe.hershberger@ni.com
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <linux/string.h>
@@ -541,7 +540,7 @@ int env_flags_validate(const ENTRY *item, const char *newval, enum env_op op,
                        return 1;
                } else if (item->flags &
                    ENV_FLAGS_VARACCESS_PREVENT_NONDEF_OVERWR) {
-                       const char *defval = getenv_default(name);
+                       const char *defval = env_get_default(name);
 
                        if (defval == NULL)
                                defval = "";