Since it is now populated from DT, skip setting it. There may still be
cases where we want to keep this old code around so we'll leave it for
now.

Signed-off-by: Casey Connolly <casey.conno...@linaro.org>
---
 arch/arm/mach-snapdragon/board.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/mach-snapdragon/board.c b/arch/arm/mach-snapdragon/board.c
index 
22efd4e0d64365b8fea01931dc2103daec21b3fb..920229f89e36e9c1a8109bc2bf30fe5ba8d5506b
 100644
--- a/arch/arm/mach-snapdragon/board.c
+++ b/arch/arm/mach-snapdragon/board.c
@@ -414,8 +414,13 @@ static void configure_env(void)
        char dt_path[64] = { 0 };
        int compat_count, ret;
        ofnode root;
 
+       if (env_get("fdtfile")) {
+               log_debug("env: fdtfile is already setup\n");
+               return;
+       }
+
        root = ofnode_root();
        /* This is almost always 2, but be explicit that we want the first and 
last compatibles
         * not the first and second.
         */

-- 
2.49.0

Reply via email to