]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/env_eeprom.c
ColdFire: MCF5445x - Update correct RAMBAR and missing linker files
[karo-tx-uboot.git] / common / env_eeprom.c
index 9f1d82a7987845682601d489a9ef5b8a39b66428..2adc129c67799cee1ecbf7124862d4b4a1d9a1d0 100644 (file)
@@ -30,9 +30,9 @@
 
 #include <command.h>
 #include <environment.h>
-#include <cmd_nvedit.h>
 #include <linux/stddef.h>
-#include <malloc.h>
+
+DECLARE_GLOBAL_DATA_PTR;
 
 env_t *env_ptr = NULL;
 
@@ -77,8 +77,6 @@ int saveenv(void)
  */
 int env_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        ulong crc, len, new;
        unsigned off;
        uchar buf[64];