]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/env_eeprom.c
MVBC_P: fix compile problem
[karo-tx-uboot.git] / common / env_eeprom.c
index 50c623e37e32b89b4bbe9f4bab1ba95f3017b059..9e1a20194d7392c38ef05d38b0ac11c8b5339d13 100644 (file)
 #include <environment.h>
 #include <linux/stddef.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 env_t *env_ptr = NULL;
 
 char * env_name_spec = "EEPROM";
 
-extern uchar (*env_get_char)(int);
-extern uchar env_get_char_memory (int index);
-
-
 uchar env_get_char_spec (int index)
 {
        uchar c;
@@ -75,8 +73,6 @@ int saveenv(void)
  */
 int env_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        ulong crc, len, new;
        unsigned off;
        uchar buf[64];