diff options
author | Matthew McClintock <msm@freescale.com> | 2010-10-13 13:39:26 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-13 20:25:33 +0200 |
commit | cb2707af7a9792c0818e67987f74b3e42ce923cf (patch) | |
tree | 20241f4762ffc4c99a6c20ecf5ed11cd6acfc5ca /common | |
parent | 076f1be8e1c1a1ea4760fc4ac7cac68bc28fc80d (diff) | |
download | u-boot-imx-cb2707af7a9792c0818e67987f74b3e42ce923cf.zip u-boot-imx-cb2707af7a9792c0818e67987f74b3e42ce923cf.tar.gz u-boot-imx-cb2707af7a9792c0818e67987f74b3e42ce923cf.tar.bz2 |
common/fdt_support.c: fix compile error
Fix build error introduced in beca5a5f5bf0d88125580e5e9c1730469cd50ab8
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>
Diffstat (limited to 'common')
-rw-r--r-- | common/fdt_support.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c index 9b65a8a..b8a3dc9 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -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; |