aboutsummaryrefslogtreecommitdiff
path: root/lib/utils/serial/fdt_serial.c
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-05-12 13:59:52 +0530
committerAnup Patel <anup@brainfault.org>2020-05-23 10:36:33 +0530
commit2c685c214f2815c12f9d70422d85daa7f48003cf (patch)
treef21b5548140c59fe843cc2caa2e444e456ca2474 /lib/utils/serial/fdt_serial.c
parent446a9c6d1eb97fcedd6a94ac76d15e941a6087a8 (diff)
downloadopensbi-2c685c214f2815c12f9d70422d85daa7f48003cf.zip
opensbi-2c685c214f2815c12f9d70422d85daa7f48003cf.tar.gz
opensbi-2c685c214f2815c12f9d70422d85daa7f48003cf.tar.bz2
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 'lib/utils/serial/fdt_serial.c')
-rw-r--r--lib/utils/serial/fdt_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/serial/fdt_serial.c b/lib/utils/serial/fdt_serial.c
index ae1aeea..fa6c478 100644
--- a/lib/utils/serial/fdt_serial.c
+++ b/lib/utils/serial/fdt_serial.c
@@ -91,7 +91,7 @@ int fdt_serial_init(void)
for (pos = 0; pos < array_size(serial_drivers); pos++) {
drv = serial_drivers[pos];
- noff = fdt_find_match(fdt, drv->match_table, &match);
+ noff = fdt_find_match(fdt, -1, drv->match_table, &match);
if (noff < 0)
continue;