]> git.sur5r.net Git - u-boot/blobdiff - env/remote.c
env: Drop the env_name_spec global
[u-boot] / env / remote.c
index c5dce5b9662cb5af1647836745020b0560568561..0d8865bd67777bf8b5b7fe9df08a7f7cf6a45c26 100644 (file)
@@ -11,8 +11,6 @@
 #include <environment.h>
 #include <linux/stddef.h>
 
-char *env_name_spec = "Remote";
-
 #ifdef ENV_IS_EMBEDDED
 env_t *env_ptr = &environment;
 #else /* ! ENV_IS_EMBEDDED */
@@ -57,6 +55,7 @@ static void env_remote_load(void)
 
 U_BOOT_ENV_LOCATION(remote) = {
        .location       = ENVL_REMOTE,
+       ENV_NAME("Remote")
        .load           = env_remote_load,
        .save           = env_save_ptr(env_remote_save),
        .init           = env_remote_init,