IMX: MX31: Cleanup include files and drop nasty #ifdef in drivers
[platform/kernel/u-boot.git] / common / env_eeprom.c
index 792b44f..0a179ad 100644 (file)
@@ -143,7 +143,7 @@ int saveenv(void)
        BUG_ON(env_ptr != NULL);
 
        res = (char *)&env_new.data;
-       len = hexport('\0', &res, ENV_SIZE);
+       len = hexport_r(&env_htab, '\0', &res, ENV_SIZE);
        if (len < 0) {
                error("Cannot export environment: errno = %d\n", errno);
                return 1;