]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/env_mmc.c
x86: Enable generic board support
[karo-tx-uboot.git] / common / env_mmc.c
index a2ff90bf485eeb4d47b02a8e22865b7fec381ad3..02bd5aed10cfeee50842cee00f9895050264c814 100644 (file)
@@ -46,13 +46,11 @@ DECLARE_GLOBAL_DATA_PTR;
 #define CONFIG_ENV_OFFSET 0
 #endif
 
-static int __mmc_get_env_addr(struct mmc *mmc, u32 *env_addr)
+__weak int mmc_get_env_addr(struct mmc *mmc, u32 *env_addr)
 {
        *env_addr = CONFIG_ENV_OFFSET;
        return 0;
 }
-int mmc_get_env_addr(struct mmc *mmc, u32 *env_addr)
-       __attribute__((weak, alias("__mmc_get_env_addr")));
 
 int env_init(void)
 {
@@ -130,7 +128,7 @@ int saveenv(void)
        }
 
        res = (char *)&env_new->data;
-       len = hexport_r(&env_htab, '\0', &res, ENV_SIZE, 0, NULL);
+       len = hexport_r(&env_htab, '\0', 0, &res, ENV_SIZE, 0, NULL);
        if (len < 0) {
                error("Cannot export environment: errno = %d\n", errno);
                ret = 1;