| 285 | } |
| 286 | |
| 287 | int fdt_first_subnode(const void *fdt, int offset) |
| 288 | { |
| 289 | int depth = 0; |
| 290 | |
| 291 | offset = fdt_next_node(fdt, offset, &depth); |
| 292 | if (offset < 0 || depth != 1) |
| 293 | return -FDT_ERR_NOTFOUND; |
| 294 | |
| 295 | return offset; |
| 296 | } |
| 297 | |
| 298 | int fdt_next_subnode(const void *fdt, int offset) |
| 299 | { |
no test coverage detected