]> git.sur5r.net Git - u-boot/blobdiff - common/hwconfig.c
fit: Verify all configuration signatures
[u-boot] / common / hwconfig.c
index 85aaabbb85529eb9413cc6548848e9f402eb0cfb..e9e956a3223a098386ff6f47d9049da89f44fdf6 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * An inteface for configuring a hardware via u-boot environment.
  *
@@ -5,8 +6,6 @@
  * Copyright 2011 Freescale Semiconductor, Inc.
  *
  * Author: Anton Vorontsov <avorontsov@ru.mvista.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef HWCONFIG_TEST
@@ -81,7 +80,7 @@ static const char *__hwconfig(const char *opt, size_t *arglen,
                                        "and before environment is ready\n");
                        return NULL;
                }
-               env_hwconfig = getenv("hwconfig");
+               env_hwconfig = env_get("hwconfig");
        }
 
        if (env_hwconfig) {