From: Rob Herring Date: Wed, 2 Apr 2014 22:52:43 +0000 (-0500) Subject: mips: xlp: copy built-in DTB out of init section X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~21^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1b77baed6b170b190a72821b39a2e91a66f1e54;p=pandora-kernel.git mips: xlp: copy built-in DTB out of init section The existing code is buggy because built-in DTBs are in init memory. It is also broken because the reserved bootmem was then freed after unflattening, but the unflattened tree points to data in the flat tree. Fix this by using the unflatten_and_copy_device_tree function. This removes all accesses to FDT header data by the arch code. Signed-off-by: Rob Herring Cc: Ralf Baechle Cc: linux-mips@linux-mips.org Tested-by: Grant Likely --- Reading git-diff-tree failed