]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/env_ubi.c
arc/cache: really do invalidate_dcache_all() even if IOC exists
[people/ms/u-boot.git] / common / env_ubi.c
index 77bbfa6ef43caf051ba5166dd8045944e6e7a821..e611199a58d6d30a69e72dc5c95fa39e9577dff8 100644 (file)
@@ -11,6 +11,7 @@
 #include <environment.h>
 #include <errno.h>
 #include <malloc.h>
+#include <memalign.h>
 #include <search.h>
 #include <ubi_uboot.h>
 #undef crc32
@@ -180,8 +181,7 @@ void env_relocate_spec(void)
                return;
        }
 
-       if (ubi_volume_read(CONFIG_ENV_UBI_VOLUME, (void *)&buf,
-                           CONFIG_ENV_SIZE)) {
+       if (ubi_volume_read(CONFIG_ENV_UBI_VOLUME, buf, CONFIG_ENV_SIZE)) {
                printf("\n** Unable to read env from %s:%s **\n",
                       CONFIG_ENV_UBI_PART, CONFIG_ENV_UBI_VOLUME);
                set_default_env(NULL);