fdt_resize(): ensure minimum padding
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 28 Oct 2008 07:26:52 +0000 (08:26 +0100)
committerGerald Van Baren <vanbaren@cideas.com>
Fri, 31 Oct 2008 00:37:57 +0000 (20:37 -0400)
commitf242a08871839eac081ba5b599af979f3a148a0d
tree09291b8dcba7c1844a00d701f96e4c6d7060867a
parentd685b74c64a38849f1a129b3ab846fbf67dd937e
fdt_resize(): ensure minimum padding

fdt_add_mem_rsv() requires space for a struct fdt_reserve_entry
(16 bytes), so make sure that fdt_resize at least adds that much
padding, no matter what the location or size of the fdt is.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Acked-by: Andy Fleming <afleming@freescale.com>
common/fdt_support.c