mips: ralink: convert to use unflatten_and_copy_device_tree
authorRob Herring <robh@kernel.org>
Thu, 3 Apr 2014 00:07:24 +0000 (19:07 -0500)
committerRob Herring <robh@kernel.org>
Wed, 30 Apr 2014 05:56:00 +0000 (00:56 -0500)
commitafb46f7996e91aeb36e07bc92cf96e8045bec00e
tree068e04d2344ac0e3c9750fb8ed7c922fc2ff392e
parente1b77baed6b170b190a72821b39a2e91a66f1e54
mips: ralink: convert to use unflatten_and_copy_device_tree

The ralink FDT code can be simplified by using
unflatten_and_copy_device_tree function. This removes all accesses to
FDT header data by the arch code.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Tested-by: Grant Likely <grant.likely@linaro.org>
arch/mips/ralink/of.c