commonlib/dt: Fix recursive call for _dt_find_node
Correctly call _dt_find_node recursively to avoid incorrect re-initialization of addrcp and sizecp. BUG=none TEST=Test coverage can pass. Change-Id: Icad075485f0a8a22138f1a0e1885405749ae5253 Signed-off-by: Kapil Porwal <kapilporwal@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86029 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
parent
2f808d0ab6
commit
f4bb16d5c2
1 changed files with 1 additions and 1 deletions
|
|
@ -1074,7 +1074,7 @@ static struct device_tree_node *_dt_find_node(struct device_tree_node *parent,
|
|||
list_insert_after(&found->list_node, &parent->children);
|
||||
}
|
||||
|
||||
return dt_find_node(found, path + 1, addrcp, sizecp, create);
|
||||
return _dt_find_node(found, path + 1, addrcp, sizecp, create);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue