mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
common/fdt_support.c: fix compile error
Fix build error introduced in beca5a5f5b
common/libcommon.a(fdt_support.o): In function `fdt_add_edid':
/local/hudson/jobs/mirrors-u-boot.git/workspace/common/fdt_support.c:1205: undefined reference to `fdt_increase_size'
make: *** [u-boot] Error 1
Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
parent
076f1be8e1
commit
cb2707af7a
1 changed files with 10 additions and 10 deletions
|
@ -667,6 +667,16 @@ int fdt_fixup_nor_flash_size(void *blob)
|
|||
}
|
||||
#endif
|
||||
|
||||
int fdt_increase_size(void *fdt, int add_len)
|
||||
{
|
||||
int newlen;
|
||||
|
||||
newlen = fdt_totalsize(fdt) + add_len;
|
||||
|
||||
/* Open in place with a new len */
|
||||
return fdt_open_into(fdt, fdt, newlen);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_FDT_FIXUP_PARTITIONS
|
||||
#include <jffs2/load_kernel.h>
|
||||
#include <mtd_node.h>
|
||||
|
@ -701,16 +711,6 @@ int fdt_del_subnodes(const void *blob, int parent_offset)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int fdt_increase_size(void *fdt, int add_len)
|
||||
{
|
||||
int newlen;
|
||||
|
||||
newlen = fdt_totalsize(fdt) + add_len;
|
||||
|
||||
/* Open in place with a new len */
|
||||
return fdt_open_into(fdt, fdt, newlen);
|
||||
}
|
||||
|
||||
int fdt_del_partitions(void *blob, int parent_offset)
|
||||
{
|
||||
const void *prop;
|
||||
|
|
Loading…
Reference in a new issue