]> git.baikalelectronics.ru Git - kernel.git/commit
of: create unflatten_and_copy_device_tree
authorRob Herring <rob.herring@calxeda.com>
Mon, 26 Aug 2013 16:22:45 +0000 (11:22 -0500)
committerRob Herring <rob.herring@calxeda.com>
Wed, 9 Oct 2013 16:38:03 +0000 (11:38 -0500)
commit31eb0ad585ece96a69f357d705dfe9141c8ebf17
tree5454fe053edb11d610d0fd35f4abeff88e076705
parent7de7c2806c5e289844e4abb65ef874ea76210a97
of: create unflatten_and_copy_device_tree

Several architectures using DT support built-in dtb's in the init
section. These platforms need to copy the dtb from init since the
strings are referenced after unflattening. Every arch has their own
copying routine which do the same thing. Create a common function,
unflatten_and_copy_device_tree, to copy the dtb when unflattening the
dtb.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
drivers/of/fdt.c
include/linux/of_fdt.h