]> git.karo-electronics.de Git - karo-tx-linux.git/commit
of: Refactor __of_node_alloc() into __of_node_dup()
authorGrant Likely <grant.likely@linaro.org>
Mon, 17 Nov 2014 22:31:32 +0000 (22:31 +0000)
committerGrant Likely <grant.likely@linaro.org>
Mon, 24 Nov 2014 22:24:41 +0000 (22:24 +0000)
commite51795815ef1a7adc018cbaf05aac46e3d24eda8
tree2cea4517a9df4e5dc4a699e25e93b2a8af2e4256
parentef8bbd73a76197cf8362a2b43aaadc5717bd0746
of: Refactor __of_node_alloc() into __of_node_dup()

Add a node argument to __of_node_alloc() and rename it to
__of_node_dup() so that it can also be used to duplicate a node with
its properties. This is important for the overlay code so that it can
create new nodes without using separate changeset items for every single
property.

At the same time rework the overlay code to use the new function and
drop the extra changeset items.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
drivers/of/dynamic.c
drivers/of/of_private.h
drivers/of/unittest.c