]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/env_fat.c
exynos: universal_c210: Move to driver model soft_spi
[karo-tx-uboot.git] / common / env_fat.c
index 328c09d45ff4c9b6b5120908bfb8ca9825ac67da..8db0160ceb0ced4fc703a2a11840d5e6bedde30d 100644 (file)
@@ -73,7 +73,7 @@ int saveenv(void)
 
 void env_relocate_spec(void)
 {
-       char buf[CONFIG_ENV_SIZE];
+       ALLOC_CACHE_ALIGN_BUFFER(char, buf, CONFIG_ENV_SIZE);
        block_dev_desc_t *dev_desc = NULL;
        disk_partition_t info;
        int dev, part;
@@ -92,7 +92,7 @@ void env_relocate_spec(void)
                goto err_env_relocate;
        }
 
-       err = file_fat_read(FAT_ENV_FILE, (uchar *)&buf, CONFIG_ENV_SIZE);
+       err = file_fat_read(FAT_ENV_FILE, buf, CONFIG_ENV_SIZE);
        if (err == -1) {
                printf("\n** Unable to read \"%s\" from %s%d:%d **\n",
                        FAT_ENV_FILE, FAT_ENV_INTERFACE, dev, part);