]> git.proxmox.com Git - qemu.git/commit
dt: allow add_subnode to create root subnodes
authorAlexander Graf <agraf@suse.de>
Thu, 17 May 2012 09:40:42 +0000 (11:40 +0200)
committerAlexander Graf <agraf@suse.de>
Sat, 23 Jun 2012 23:04:45 +0000 (01:04 +0200)
commitc640d088349acaf23161e7afb3dfeb5d6a7007f1
tree3735bb38c7157baf59a32c4f4fc874ca4781d483
parent94282e714628ee4b130b46f3b06b34da45b2fe6a
dt: allow add_subnode to create root subnodes

Our subnode creation helper can't handle creation of root subnodes,
like "/memory". Fix this by allowing the parent node to be an empty
string, indicating the root node.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@petalogix.com>
device_tree.c