]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Make prom.c device tree accesses endian safe
authorIan Munsie <imunsie@au1.ibm.com>
Tue, 6 Aug 2013 16:01:27 +0000 (02:01 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 05:33:19 +0000 (15:33 +1000)
commitc5738a678861c2d65a0fff2f00f06c6a08ee8d11
tree25c2953fdec1d2fe3294eddad0d66077849eb3f1
parentcd9df41d03ddaaf832aae8d2cc212391a6d02134
powerpc: Make prom.c device tree accesses endian safe

On PowerPC the device tree is always big endian, but the CPU could be
either, so add be32_to_cpu where appropriate and change the types of
device tree data to __be32 etc to allow sparse to locate endian issues.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/prom.c