diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-03 12:22:08 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-15 20:50:30 -0400 |
commit | 01510091de905c46620757b9027b2e55c4b3b313 (patch) | |
tree | 6c4a3bfa6f7f35c37bd0bfe6f286218461e09577 /board/intel | |
parent | 310fb14b2631b2175efe9b0e56d0f1630ad02d91 (diff) |
env: Drop saveenv() in favour of env_save()
Use the env_save() function directly now that there is only one
implementation of saveenv().
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Denk <wd@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/intel')
-rw-r--r-- | board/intel/edison/edison.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/intel/edison/edison.c b/board/intel/edison/edison.c index a1a7d4d7c89..80f9b544b00 100644 --- a/board/intel/edison/edison.c +++ b/board/intel/edison/edison.c @@ -5,6 +5,7 @@ */ #include <common.h> #include <dwc3-uboot.h> +#include <environment.h> #include <mmc.h> #include <u-boot/md5.h> #include <usb.h> @@ -70,7 +71,7 @@ static void assign_serial(void) setenv("serial#", serial); #if defined(CONFIG_CMD_SAVEENV) && !defined(CONFIG_ENV_IS_NOWHERE) - saveenv(); + env_save(); #endif } @@ -88,7 +89,7 @@ static void assign_hardware_id(void) setenv("hardware_id", hardware_id); #if defined(CONFIG_CMD_SAVEENV) && !defined(CONFIG_ENV_IS_NOWHERE) - saveenv(); + env_save(); #endif } |