]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
libfdt: move FDT_RAMDISK_OVERHEAD to image-fdt.c
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 21 Mar 2018 09:03:33 +0000 (18:03 +0900)
committerSimon Glass <sjg@chromium.org>
Sun, 1 Apr 2018 14:19:10 +0000 (22:19 +0800)
This macro is locally referenced in common/image-fdt.c

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/image-fdt.c
include/linux/libfdt.h

index 25103ba3b5d9debdd254631b47e78705a0a0b925..3dc02a12191d515fc19e10ba3abfe8c55633d234 100644 (file)
@@ -21,6 +21,9 @@
 #define CONFIG_SYS_FDT_PAD 0x3000
 #endif
 
+/* adding a ramdisk needs 0x44 bytes in version 2008.10 */
+#define FDT_RAMDISK_OVERHEAD   0x80
+
 DECLARE_GLOBAL_DATA_PTR;
 
 static void fdt_error(const char *msg)
index 9e6eeadc400f86a66b19fc557a3194c641f8ce3c..eeb2344971f3ff9489ae454647bb4f951bf170df 100644 (file)
@@ -309,7 +309,4 @@ int fdt_add_alias_regions(const void *fdt, struct fdt_region *region, int count,
 
 extern struct fdt_header *working_fdt;  /* Pointer to the working fdt */
 
-/* adding a ramdisk needs 0x44 bytes in version 2008.10 */
-#define FDT_RAMDISK_OVERHEAD   0x80
-
 #endif /* _INCLUDE_LIBFDT_H_ */