fdt: Correct condition for receiving bloblist
authorSimon Glass <sjg@chromium.org>
Sat, 2 Nov 2024 17:49:41 +0000 (11:49 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 18 Dec 2024 21:16:55 +0000 (15:16 -0600)
The condition for receiving a bloblist from TPL is reversed. This was
only noticed are the other fixes landed. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Matthias Brugger <mbrugger@suse.com>
lib/fdtdec.c

index b065598..60e2817 100644 (file)
@@ -1677,7 +1677,7 @@ int fdtdec_setup(void)
         */
        if (CONFIG_IS_ENABLED(BLOBLIST) &&
            (xpl_prev_phase() != PHASE_TPL ||
-            !IS_ENABLED(CONFIG_TPL_BLOBLIST))) {
+            IS_ENABLED(CONFIG_TPL_BLOBLIST))) {
                ret = bloblist_maybe_init();
                if (!ret) {
                        gd->fdt_blob = bloblist_find(BLOBLISTT_CONTROL_FDT, 0);