diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/fdt_support.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c index 10648b5..f86365e 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -454,6 +454,9 @@ int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[], int banks) return err; } + if (!banks) + return 0; + len = fdt_pack_reg(blob, tmp, start, size, banks); err = fdt_setprop(blob, nodeoffset, "reg", tmp, len); |