| 203 | } |
| 204 | |
| 205 | int fdt_first_subnode(const void *fdt, int offset) |
| 206 | { |
| 207 | int depth = 0; |
| 208 | |
| 209 | offset = fdt_next_node(fdt, offset, &depth); |
| 210 | if (offset < 0 || depth != 1) |
| 211 | return -FDT_ERR_NOTFOUND; |
| 212 | |
| 213 | return offset; |
| 214 | } |
| 215 | |
| 216 | int fdt_next_subnode(const void *fdt, int offset) |
| 217 | { |
nothing calls this directly
no test coverage detected