Commit c85da64
of/fdt: Fix incorrect use of dt_root_addr_cells in early_init_dt_check_kho()
When reading the fdt_size value, the argument passed to dt_mem_next_cell()
is dt_root_addr_cells, but it should be dt_root_size_cells.
The same issue occurs when reading the scratch_size value.
Use a helper function to simplify the code and fix these issues.
Fixes: 274cdcb ("arm64: add KHO support")
Signed-off-by: Yuntao Wang <yuntao.wang@linux.dev>
Link: https://patch.msgid.link/20251115134753.179931-5-yuntao.wang@linux.dev
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>1 parent 463942d commit c85da64
1 file changed
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
925 | | - | |
926 | | - | |
927 | 925 | | |
928 | 926 | | |
929 | 927 | | |
930 | 928 | | |
931 | | - | |
932 | | - | |
| 929 | + | |
| 930 | + | |
933 | 931 | | |
934 | 932 | | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
| 933 | + | |
| 934 | + | |
940 | 935 | | |
941 | 936 | | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | 937 | | |
946 | 938 | | |
947 | 939 | | |
| |||
0 commit comments