From 99245aa654fb25aa9bc849a00ba7e6bdd73a4e23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Tue, 14 Feb 2023 23:40:42 +0100 Subject: [PATCH] kboot: Make filling in of memory-region-names optional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin PoviĊĦer --- src/kboot.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kboot.c b/src/kboot.c index 3ef79efa..156040f1 100644 --- a/src/kboot.c +++ b/src/kboot.c @@ -1211,6 +1211,9 @@ static int dt_device_add_mem_region(const char *alias, uint32_t phandle, const c if (dev_node < 0) bail("DT: failed to update node for alias '%s'\n", alias); + if (!name) + return 0; + ret = fdt_appendprop_string(dt, dev_node, "memory-region-names", name); if (ret != 0) bail("DT: failed to append to 'memory-region-names' property\n");