summaryrefslogtreecommitdiff
path: root/common/spl/spl_dfu.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/spl/spl_dfu.c')
-rw-r--r--common/spl/spl_dfu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_dfu.c b/common/spl/spl_dfu.c
index f5ec0fb396..2c974735b1 100644
--- a/common/spl/spl_dfu.c
+++ b/common/spl/spl_dfu.c
@@ -40,7 +40,7 @@ int spl_dfu_cmd(int usbctrl, char *dfu_alt_info, char *interface, char *devstr)
/* set default environment */
set_default_env(0);
- str_env = getenv(dfu_alt_info);
+ str_env = env_get(dfu_alt_info);
if (!str_env) {
error("\"dfu_alt_info\" env variable not defined!\n");
return -EINVAL;