]> git.baikalelectronics.ru Git - kernel.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)
commit20ad7f463c201fe63cad648d149a9b9aab62d74e
tree2cea4517a9df4e5dc4a699e25e93b2a8af2e4256
parent52baea2e7b0aba6cc7f05fe551f163e692776b42
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