diff mbox series

[06/18] fdt: Correct condition for SEPARATE_BSS

Message ID 20220228190835.1480772-7-sjg@chromium.org
State Accepted
Commit 690af71850149bf242502f688eca80fb302d1f76
Delegated to: Tom Rini
Headers show
Series Various bugfixes related to verified boot | expand

Commit Message

Simon Glass Feb. 28, 2022, 7:08 p.m. UTC
This may have different settings for SPL and TPL. Correct the condition.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 lib/fdtdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 87aa677a4a..086f0c732a 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -1227,7 +1227,7 @@  static void *fdt_find_separate(void)
 
 #ifdef CONFIG_SPL_BUILD
 	/* FDT is at end of BSS unless it is in a different memory region */
-	if (IS_ENABLED(CONFIG_SPL_SEPARATE_BSS))
+	if (CONFIG_IS_ENABLED(SEPARATE_BSS))
 		fdt_blob = (ulong *)&_image_binary_end;
 	else
 		fdt_blob = (ulong *)&__bss_end;