From: Vikas Singh Date: Wed, 12 Feb 2020 08:17:09 +0000 (+0530) Subject: board: lx2160a: Correct board fixup for PCIe nodes X-Git-Tag: v2025.01-rc5-pxa1908~2513^2~36 X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=297d48857ac72c0ae303210e03e31b2e23bc7a93;p=u-boot.git board: lx2160a: Correct board fixup for PCIe nodes Update "board_fix_fdt" with correct counter value "i". This will fix the issue while fetching the "reg_names" resource from fdt after fixup. Signed-off-by: Vikas Singh Reviewed-by: Priyanka Jain --- diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c index 103b0cc659..cdacbbd43b 100644 --- a/board/freescale/lx2160a/lx2160a.c +++ b/board/freescale/lx2160a/lx2160a.c @@ -149,6 +149,7 @@ int board_fix_fdt(void *fdt) reg_name = reg_names; remaining_names_len = names_len - (reg_name - reg_names); + i = 0; while ((i < ARRAY_SIZE(reg_names_map)) && remaining_names_len) { old_name_len = strlen(reg_names_map[i].old_str); new_name_len = strlen(reg_names_map[i].new_str);