|
@@ -333,7 +333,7 @@ int fdt_add_subnode_namelen(void *fdt, int parentoffset,
|
|
do {
|
|
do {
|
|
offset = nextoffset;
|
|
offset = nextoffset;
|
|
tag = fdt_next_tag(fdt, offset, &nextoffset);
|
|
tag = fdt_next_tag(fdt, offset, &nextoffset);
|
|
- } while (tag == FDT_PROP);
|
|
|
|
|
|
+ } while ((tag == FDT_PROP) || (tag == FDT_NOP));
|
|
|
|
|
|
nh = _fdt_offset_ptr_w(fdt, offset);
|
|
nh = _fdt_offset_ptr_w(fdt, offset);
|
|
nodelen = sizeof(*nh) + ALIGN(namelen+1, FDT_TAGSIZE) + FDT_TAGSIZE;
|
|
nodelen = sizeof(*nh) + ALIGN(namelen+1, FDT_TAGSIZE) + FDT_TAGSIZE;
|