From: Grant Likely Date: Tue, 13 Apr 2010 23:12:26 +0000 (-0700) Subject: of/flattree: Make unflatten_device_tree() safe to call from any arch X-Git-Tag: v2.6.35-rc1~420^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bfe9b5c3a684fe39eb58a65e466c103d1c32c9a;p=pandora-kernel.git of/flattree: Make unflatten_device_tree() safe to call from any arch This patch makes unflatten_device_tree() safe to call from any arch setup code with the following changes: - Make sure initial_boot_params actually points to a device tree blob before unflattening - Make sure the initial_boot_params->magic field is correct - If CONFIG_OF_FLATTREE is not set, then make unflatten_device_tree() an empty static inline function. This patch also adds some additional debug output to the top of unflatten_device_tree(). Signed-off-by: Grant Likely --- Reading git-diff-tree failed