Skip to content

Commit 1611dcc

Browse files
committed
[DM][OFW] Fixup fdt address reg and cells parse
The bubble up should stop when the #xxx-cells is match. Signed-off-by: GuEe-GUI <[email protected]>
1 parent 2fb53c8 commit 1611dcc

File tree

1 file changed

+2
-0
lines changed
  • components/drivers/ofw

1 file changed

+2
-0
lines changed

components/drivers/ofw/raw.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ int fdt_io_addr_cells(void *fdt, int nodeoffset)
9393
if (cells_tmp)
9494
{
9595
cells = fdt32_to_cpu(*cells_tmp);
96+
break;
9697
}
9798
}
9899

@@ -116,6 +117,7 @@ int fdt_io_size_cells(void *fdt, int nodeoffset)
116117
if (cells_tmp)
117118
{
118119
cells = fdt32_to_cpu(*cells_tmp);
120+
break;
119121
}
120122
}
121123

0 commit comments

Comments
 (0)