mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-21 22:23:05 +00:00
kboot: Make filling in of memory-region-names optional
Signed-off-by: Martin Povišer <povik@cutebit.org>
This commit is contained in:
parent
9ccef6b8bd
commit
44f65b1875
1 changed files with 3 additions and 0 deletions
|
@ -1253,6 +1253,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");
|
||||
|
|
Loading…
Reference in a new issue