]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fdt: Drop SPL_BUILD macro
authorSimon Glass <sjg@chromium.org>
Thu, 13 Jan 2022 02:26:15 +0000 (19:26 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 13 Jan 2022 16:13:41 +0000 (09:13 -0700)
This old macro is not needed anymore since we can use IS_ENABLED() now.
Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/serial/serial-uclass.c
include/fdtdec.h

index 30d44214d7d41325bc9945063ef5e53c022fecb0..96a1cb65ba2777c9e58bd2ef749727db50421ce5 100644 (file)
@@ -104,7 +104,8 @@ static void serial_find_console_or_panic(void)
                        }
                }
        }
-       if (!SPL_BUILD || !CONFIG_IS_ENABLED(OF_CONTROL) || !blob) {
+       if (!IS_ENABLED(CONFIG_SPL_BUILD) || !CONFIG_IS_ENABLED(OF_CONTROL) ||
+           !blob) {
                /*
                 * Try to use CONFIG_CONS_INDEX if available (it is numbered
                 * from 1!).
index 09525ce510aa698641dc5fc0723be81e7412509c..15f2d2bbbaaace23611e67334d48735d86ee032b 100644 (file)
@@ -49,12 +49,6 @@ struct fdt_memory {
 
 struct bd_info;
 
-#ifdef CONFIG_SPL_BUILD
-#define SPL_BUILD      1
-#else
-#define SPL_BUILD      0
-#endif
-
 /**
  * enum fdt_source_t - indicates where the devicetree came from
  *