]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
image: Drop IMAGE_OF_SYSTEM_SETUP
authorSimon Glass <sjg@chromium.org>
Sun, 26 Sep 2021 01:43:27 +0000 (19:43 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 8 Oct 2021 19:53:26 +0000 (15:53 -0400)
This is not needed with Kconfig, since we can use IS_ENABLED() easily
enough. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
common/image-fdt.c
include/image.h

index 2be6d193f42dbdd9cd7f3e007c82cdde116be2a7..abea17bd56528305e5f1dcf22066806b01adeb32 100644 (file)
@@ -597,7 +597,7 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob,
                        }
                }
        }
-       if (IMAGE_OF_SYSTEM_SETUP) {
+       if (IS_ENABLED(CONFIG_OF_SYSTEM_SETUP)) {
                fdt_ret = ft_system_setup(blob, gd->bd);
                if (fdt_ret) {
                        printf("ERROR: system-specific fdt fixup failed: %s\n",
index e1e4148e4c8e036cb73dcf5daf33ad70980a260a..e190f59232d914754f5806e6bc8fbefb4f68eb5a 100644 (file)
@@ -49,12 +49,6 @@ struct fdt_region;
 #include <fdt_support.h>
 #endif /* FIT */
 
-#ifdef CONFIG_OF_SYSTEM_SETUP
-# define IMAGE_OF_SYSTEM_SETUP 1
-#else
-# define IMAGE_OF_SYSTEM_SETUP 0
-#endif
-
 extern ulong image_load_addr;          /* Default Load Address */
 extern ulong image_save_addr;          /* Default Save Address */
 extern ulong image_save_size;          /* Default Save Size */