summaryrefslogtreecommitdiff
path: root/common/fdt_support.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/fdt_support.c')
-rw-r--r--common/fdt_support.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c
index 8c283f8b02..5f28d9738a 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -475,8 +475,6 @@ int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[], int banks)
{
int err, nodeoffset;
int len;
- const void *reg;
-
u8 tmp[MEMORY_BANKS_MAX * 16]; /* Up to 64-bit address + 64-bit size */
if (banks > MEMORY_BANKS_MAX) {
@@ -505,13 +503,6 @@ int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[], int banks)
return err;
}
- reg = fdt_getprop(blob, nodeoffset, "reg", NULL);
- printf("%s, reg:%p\n", __func__, reg);
- if (reg) {
- printf("DTS already have 'reg' property\n");
- return 0;
- }
-
len = fdt_pack_reg(blob, tmp, start, size, banks);
err = fdt_setprop(blob, nodeoffset, "reg", tmp, len);