diff mbox series

[v2] board: lx2160a: Correct board fixup for PCIe nodes

Message ID 1581495429-1800-1-git-send-email-vikas.singh@nxp.com
State Accepted
Commit 297d48857ac72c0ae303210e03e31b2e23bc7a93
Delegated to: Priyanka Jain
Headers show
Series [v2] board: lx2160a: Correct board fixup for PCIe nodes | expand

Commit Message

Vikas Singh Feb. 12, 2020, 8:17 a.m. UTC
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 <vikas.singh@nxp.com>
---

Notes:
    V2
    
    Add correct subject and remove the '.' from it

 board/freescale/lx2160a/lx2160a.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Priyanka Jain (OSS) March 30, 2020, 10:16 a.m. UTC | #1
>-----Original Message-----
>From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Vikas Singh
>Sent: Wednesday, February 12, 2020 1:47 PM
>To: Priyanka Jain <priyanka.jain@nxp.com>
>Cc: u-boot@lists.denx.de
>Subject: [PATCH v2] 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 <vikas.singh@nxp.com>
>---
Applied to u-boot-fsl-qoriq. Waiting upstream

Thanks
Priyanka
diff mbox series

Patch

diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c
index 4509a34..5c23554 100644
--- a/board/freescale/lx2160a/lx2160a.c
+++ b/board/freescale/lx2160a/lx2160a.c
@@ -169,6 +169,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);