fixup! state: add fixup to copy state from barebox to kernel device tree
During of_state_fixup() we have to write the #address-cells and #size-cells property of the node we're copying the data to, not the "root" node of the device tree we're working on. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
39568d9ca5
commit
5e859256a0
|
@ -737,11 +737,11 @@ static int of_state_fixup(struct device_node *root, void *ctx)
|
|||
goto out;
|
||||
|
||||
/* address-cells + size-cells */
|
||||
ret = of_property_write_u32(root, "#address-cells", 1);
|
||||
ret = of_property_write_u32(new_node, "#address-cells", 1);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
ret = of_property_write_u32(root, "#size-cells", 1);
|
||||
ret = of_property_write_u32(new_node, "#size-cells", 1);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
|
|
Loading…
Reference in New Issue