OSDN Git Service

powerpc: use libfdt accessors for header data
authorRob Herring <robh@kernel.org>
Mon, 31 Mar 2014 20:15:00 +0000 (15:15 -0500)
committerRob Herring <robh@kernel.org>
Wed, 30 Apr 2014 05:59:18 +0000 (00:59 -0500)
commit060f78c2543a890626cab81796b0d6f7070bd989
tree5d402737cef84ba79aedd44be8f1577b7ee769de
parentc0556d3f2c3f42eaed049139ce6f0899ecdb0217
powerpc: use libfdt accessors for header data

With libfdt support, we can take advantage of helper accessors in libfdt
for accessing the FDT header data. This makes the code more readable and
makes the FDT blob structure more opaque to the kernel. This also
prepares for removing struct boot_param_header completely.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Tested-by: Grant Likely <grant.likely@linaro.org>
Tested-by: Stephen Chivers <schivers@csc.com>
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/prom.c