forked from Mirrors/opensbi
		
	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>
This commit is contained in:
		@@ -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;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user