x86: use FDT accessors for FDT blob header data
authorRob Herring <robh@kernel.org>
Mon, 31 Mar 2014 20:17:31 +0000 (15:17 -0500)
committerRob Herring <robh@kernel.org>
Wed, 30 Apr 2014 05:59:19 +0000 (00:59 -0500)
commit1bac1869947ee3866c6d687b99e4283d37bb499b
treea5c4b4360d96c92b1c30bbabb14474553ab96d26
parent060f78c2543a890626cab81796b0d6f7070bd989
x86: use FDT accessors for FDT blob header data

Remove the direct accesses to FDT header data using accessor
function instead. This makes the code more readable and makes the FDT
blob structure more opaque to the arch code. This also prepares for
removing struct boot_param_header completely.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: x86@kernel.org
Tested-by: Grant Likely <grant.likely@linaro.org>
arch/x86/kernel/devicetree.c