]> git.proxmox.com Git - mirror_qemu.git/commitdiff
dt: temporarily disable subtree creation failure check
authorAlexander Graf <agraf@suse.de>
Thu, 17 May 2012 12:12:57 +0000 (14:12 +0200)
committerAlexander Graf <agraf@suse.de>
Sat, 23 Jun 2012 23:04:46 +0000 (01:04 +0200)
Usually we want to know when creating a subtree fails. However, while
introducing this patch set we have to modify the device tree and some
times have the code to create a subtree in both the binary tree and
the dynamically created tree.

So ignore failures about this for now and enable them once we got rid
of the binary device tree.

Signed-off-by: Alexander Graf <agraf@suse.de>
device_tree.c

index 2905f9afe4d7912f6ff5662b3d2d93d0b9c9193f..967c97ac04ed9874b3d3e2c38397f625386d707d 100644 (file)
@@ -174,11 +174,13 @@ int qemu_devtree_add_subnode(void *fdt, const char *name)
     }
 
     retval = fdt_add_subnode(fdt, parent, basename);
+#if 0
     if (retval < 0) {
         fprintf(stderr, "FDT: Failed to create subnode %s: %s\n", name,
                 fdt_strerror(retval));
         exit(1);
     }
+#endif
 
     g_free(dupname);
     return retval;