diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-05-12 11:29:52 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-05-23 08:06:33 +0300 |
commit | 2c685c214f2815c12f9d70422d85daa7f48003cf (patch) | |
tree | f21b5548140c59fe843cc2caa2e444e456ca2474 /platform/generic | |
parent | 446a9c6d1eb97fcedd6a94ac76d15e941a6087a8 (diff) | |
download | opensbi-2c685c214f2815c12f9d70422d85daa7f48003cf.tar.xz |
lib: utils: Extend fdt_find_match() Implementation
We extend fdt_find_match() implementation by adding node offset
parameter which represents the first node to match from.
The improved fdt_find_match() can be used to find multiple
match nodes.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'platform/generic')
-rw-r--r-- | platform/generic/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/generic/platform.c b/platform/generic/platform.c index 7b4a0ae..a4a07e3 100644 --- a/platform/generic/platform.c +++ b/platform/generic/platform.c @@ -41,7 +41,7 @@ static void fw_platform_lookup_special(void *fdt, int root_offset) if (!plat->match_table) continue; - noff = fdt_find_match(fdt, plat->match_table, &match); + noff = fdt_find_match(fdt, -1, plat->match_table, &match); if (noff < 0) continue; |