mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
device tree: add nop_node
We have a qemu internal abstraction layer on FDT. While I'm not fully convinced we need it at all, it's missing the nop_node functionality that we now need on e500. So let's add it and think about the general future of that API later. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
a915249fa1
commit
d69a8e6387
2 changed files with 12 additions and 0 deletions
|
@ -107,3 +107,14 @@ int qemu_devtree_setprop_string(void *fdt, const char *node_path,
|
|||
|
||||
return fdt_setprop_string(fdt, offset, property, string);
|
||||
}
|
||||
|
||||
int qemu_devtree_nop_node(void *fdt, const char *node_path)
|
||||
{
|
||||
int offset;
|
||||
|
||||
offset = fdt_path_offset(fdt, node_path);
|
||||
if (offset < 0)
|
||||
return offset;
|
||||
|
||||
return fdt_nop_node(fdt, offset);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue