Revision 8535ab12 device_tree.c

b/device_tree.c
132 132
    return r;
133 133
}
134 134

  
135
int qemu_devtree_setprop_phandle(void *fdt, const char *node_path,
136
                                 const char *property,
137
                                 const char *target_node_path)
138
{
139
    uint32_t phandle = fdt_get_phandle(fdt, findnode_nofail(fdt, target_node_path));
140
    return qemu_devtree_setprop_cell(fdt, node_path, property, phandle);
141
}
142

  
135 143
int qemu_devtree_nop_node(void *fdt, const char *node_path)
136 144
{
137 145
    int r;

Also available in: Unified diff