mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-25 04:43:04 +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
f996295045
commit
99245aa654
1 changed files with 3 additions and 0 deletions
|
@ -1211,6 +1211,9 @@ static int dt_device_add_mem_region(const char *alias, uint32_t phandle, const c
|
||||||
if (dev_node < 0)
|
if (dev_node < 0)
|
||||||
bail("DT: failed to update node for alias '%s'\n", alias);
|
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);
|
ret = fdt_appendprop_string(dt, dev_node, "memory-region-names", name);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
bail("DT: failed to append to 'memory-region-names' property\n");
|
bail("DT: failed to append to 'memory-region-names' property\n");
|
||||||
|
|
Loading…
Reference in a new issue