From 2c685c214f2815c12f9d70422d85daa7f48003cf Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Tue, 12 May 2020 13:59:52 +0530 Subject: 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 Reviewed-by: Atish Patra --- lib/utils/timer/fdt_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/utils/timer/fdt_timer.c') diff --git a/lib/utils/timer/fdt_timer.c b/lib/utils/timer/fdt_timer.c index 1ad08fe4..46edb83a 100644 --- a/lib/utils/timer/fdt_timer.c +++ b/lib/utils/timer/fdt_timer.c @@ -80,7 +80,7 @@ static int fdt_timer_cold_init(void) for (pos = 0; pos < array_size(timer_drivers); pos++) { drv = timer_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; -- cgit v1.3.1