scripts: extract_dts_inculdes: Fix reg prop size/addr cell calculation
When we determine the address and size cells to determine how to parse a reg property, we need to stop at the parent of the node, not at the node itself. If we have #address-cells or #size-cells in a node its meant for the children of that node and not the node itself. Fixes #4568 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
7fc5ffa92b
commit
451fc36824
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ def extract_reg_prop(node_address, names, defs, def_label, div, post_label):
|
||||||
address_cells = reduced['/']['props'].get('#address-cells')
|
address_cells = reduced['/']['props'].get('#address-cells')
|
||||||
size_cells = reduced['/']['props'].get('#size-cells')
|
size_cells = reduced['/']['props'].get('#size-cells')
|
||||||
address = ''
|
address = ''
|
||||||
for comp in node_address.split('/')[1:]:
|
for comp in node_address.split('/')[1:-1]:
|
||||||
address += '/' + comp
|
address += '/' + comp
|
||||||
address_cells = reduced[address]['props'].get(
|
address_cells = reduced[address]['props'].get(
|
||||||
'#address-cells', address_cells)
|
'#address-cells', address_cells)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue