]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/env_flash.c
env: move extern environment[] to environment.h
[people/ms/u-boot.git] / common / env_flash.c
index d9f8fcb1ef462ca1c51e5eef362373818743c3a7..e770ee6368de45264536540991ee8251cb441e8c 100644 (file)
@@ -49,9 +49,7 @@ DECLARE_GLOBAL_DATA_PTR;
 char * env_name_spec = "Flash";
 
 #ifdef ENV_IS_EMBEDDED
-
-extern uchar environment[];
-env_t *env_ptr = (env_t *)(&environment[0]);
+env_t *env_ptr = &environment;
 
 static env_t *flash_addr = (env_t *)CONFIG_ENV_ADDR;