aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-09-25 19:43:27 -0600
committerTom Rini <trini@konsulko.com>2021-10-08 15:53:26 -0400
commit3ac0f504125e2f97364ba8cc6bc95c1e350bd35a (patch)
tree508f16c60c706a69a11524a785b75301860264c1
parent30ba2828652915d29892146022ed92b2bd524ad6 (diff)
downloadu-boot-3ac0f504125e2f97364ba8cc6bc95c1e350bd35a.zip
u-boot-3ac0f504125e2f97364ba8cc6bc95c1e350bd35a.tar.gz
u-boot-3ac0f504125e2f97364ba8cc6bc95c1e350bd35a.tar.bz2
image: Drop IMAGE_OF_SYSTEM_SETUP
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>
-rw-r--r--common/image-fdt.c2
-rw-r--r--include/image.h6
2 files changed, 1 insertions, 7 deletions
diff --git a/common/image-fdt.c b/common/image-fdt.c
index 2be6d19..abea17b 100644
--- a/common/image-fdt.c
+++ b/common/image-fdt.c
@@ -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",
diff --git a/include/image.h b/include/image.h
index e1e4148..e190f59 100644
--- a/include/image.h
+++ b/include/image.h
@@ -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 */