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)
committerMark Brown <broonie@kernel.org>
Tue, 17 Feb 2015 02:56:13 +0000 (11:56 +0900)
commit1ee737348e46756b420ca9cc1c18afc6e6df9409
tree4305a48ea5bb29ffcdd65b3f194166cea24a59a3
parent644d38f5abcee9cd78719ede58ef72e1b2ab47e8
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>
(cherry picked from commit e51795815ef1a7adc018cbaf05aac46e3d24eda8)
Signed-off-by: Mark Brown <broonie@kernel.org>
Conflicts:
drivers/of/unittest.c
drivers/of/dynamic.c
drivers/of/of_private.h
drivers/of/selftest.c