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 25103ba..3dc02a1 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 9e6eead..eeb2344 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_ */