diff options
author | Simon Glass <sjg@chromium.org> | 2019-08-01 09:47:00 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-08-11 16:43:41 -0400 |
commit | 0ac7d722ede8e64973f68dbcd07b9521ba04cb63 (patch) | |
tree | 179942d65436fafe8d1c3193bd15913f3b2c5f18 /env/mmc.c | |
parent | 1f3db0c135fcaf40ff88bdcd058b56bc7e1f58f3 (diff) |
env: Move get/set_default_env() to env.h
Move these functions to the new header file and rename set_default_env()
to env_set_default() so that it has a consistent env_ prefix.
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'env/mmc.c')
-rw-r--r-- | env/mmc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8,6 +8,7 @@ #include <common.h> #include <command.h> +#include <env.h> #include <environment.h> #include <fdtdec.h> #include <linux/stddef.h> @@ -346,7 +347,7 @@ fini: fini_mmc_for_env(mmc); err: if (ret) - set_default_env(errmsg, 0); + env_set_default(errmsg, 0); #endif return ret; @@ -387,7 +388,7 @@ fini: fini_mmc_for_env(mmc); err: if (ret) - set_default_env(errmsg, 0); + env_set_default(errmsg, 0); #endif return ret; } |