/* Change Logs: Date Author Notes  GuEe-GUI first version  */
int fdt_add_subnode_possible(void *fdt, int parentoffset, const char *name)
/* Change Logs: Date Author Notes  GuEe-GUI first version  */
int fdt_add_subnode_possible(void *fdt, int parentoffset, const char *name)
{
    int nodeoffset;
    if ((nodeoffset = fdt_add_subnode(fdt, parentoffset, name)) < 0)
    {
        fdt_open_into(fdt, fdt, fdt_totalsize(fdt) + FDT_PADDING_SIZE);
        nodeoffset = fdt_add_subnode(fdt, parentoffset, name);
    }
    return nodeoffset;
}