9
0
Fork 0

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:
Marc Kleine-Budde 2015-05-26 13:31:35 +02:00
parent 39568d9ca5
commit 5e859256a0
1 changed files with 2 additions and 2 deletions

View File

@ -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;