[U-Boot] [PATCH 01/11] image: zap IMAGE_ENABLE_RAMDISK_HIGH
Masahiro Yamada
yamada.masahiro at socionext.com
Fri Dec 18 03:05:00 CET 2015
Do not use a macro that just ends up in unreadable code.
Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
---
common/image.c | 2 +-
include/image.h | 6 ------
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/common/image.c b/common/image.c
index c36927f..d980725 100644
--- a/common/image.c
+++ b/common/image.c
@@ -1354,7 +1354,7 @@ int image_setup_linux(bootm_headers_t *images)
return ret;
}
}
- if (IMAGE_ENABLE_RAMDISK_HIGH) {
+ if (IS_ENABLED(CONFIG_SYS_BOOT_RAMDISK_HIGH)) {
rd_len = images->rd_end - images->rd_start;
ret = boot_ramdisk_high(lmb, images->rd_start, rd_len,
initrd_start, initrd_end);
diff --git a/include/image.h b/include/image.h
index 299d6d2..9eab991 100644
--- a/include/image.h
+++ b/include/image.h
@@ -96,12 +96,6 @@ struct lmb;
#endif /* CONFIG_FIT */
-#ifdef CONFIG_SYS_BOOT_RAMDISK_HIGH
-# define IMAGE_ENABLE_RAMDISK_HIGH 1
-#else
-# define IMAGE_ENABLE_RAMDISK_HIGH 0
-#endif
-
#ifdef CONFIG_OF_LIBFDT
# define IMAGE_ENABLE_OF_LIBFDT 1
#else
--
1.9.1
More information about the U-Boot
mailing list