Merge tag 'u-boot-rockchip-20200130' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / env / remote.c
index 02531f427ba82910f8ae65bc788379435b03ea31..50d77b8dfe0e552f6616c33a55fc4b665a5fca36 100644 (file)
@@ -9,6 +9,7 @@
 #include <command.h>
 #include <env_internal.h>
 #include <linux/stddef.h>
+#include <u-boot/crc.h>
 
 #ifdef ENV_IS_EMBEDDED
 env_t *env_ptr = &environment;
@@ -18,10 +19,6 @@ env_t *env_ptr = (env_t *)CONFIG_ENV_ADDR;
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if !defined(CONFIG_ENV_OFFSET)
-#define CONFIG_ENV_OFFSET 0
-#endif
-
 static int env_remote_init(void)
 {
        if (crc32(0, env_ptr->data, ENV_SIZE) == env_ptr->crc) {