dm: core: Reverse the argument order in ofnode_copy_props()

Follow the order used by memcpy() as it may be less confusing.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2023-09-26 08:14:37 -06:00
committed by Tom Rini
parent a17e1e76c8
commit 247970978d
5 changed files with 10 additions and 11 deletions

View File

@@ -187,7 +187,7 @@ static int bootmeth_vbe_ft_fixup(void *ctx, struct event *event)
ret = ofnode_add_subnode(dest_parent, name, &dest);
if (ret && ret != -EEXIST)
return log_msg_ret("add", ret);
ret = ofnode_copy_props(node, dest);
ret = ofnode_copy_props(dest, node);
if (ret)
return log_msg_ret("cp", ret);