diff options
Diffstat (limited to 'lib/utils/fdt')
-rw-r--r-- | lib/utils/fdt/fdt_helper.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/utils/fdt/fdt_helper.c b/lib/utils/fdt/fdt_helper.c index 61d70d9..58f8951 100644 --- a/lib/utils/fdt/fdt_helper.c +++ b/lib/utils/fdt/fdt_helper.c @@ -43,7 +43,8 @@ const struct fdt_match *fdt_match_node(void *fdt, int nodeoff, return NULL; } -int fdt_find_match(void *fdt, const struct fdt_match *match_table, +int fdt_find_match(void *fdt, int startoff, + const struct fdt_match *match_table, const struct fdt_match **out_match) { int nodeoff; @@ -52,7 +53,7 @@ int fdt_find_match(void *fdt, const struct fdt_match *match_table, return SBI_ENODEV; while (match_table->compatible) { - nodeoff = fdt_node_offset_by_compatible(fdt, -1, + nodeoff = fdt_node_offset_by_compatible(fdt, startoff, match_table->compatible); if (nodeoff >= 0) { if (out_match) |