Searched hist:dc0e643afc505e7feeac5f86e8fe82183847ebe7 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/powerpc/kernel/ |
H A D | prom.c | diff dc0e643afc505e7feeac5f86e8fe82183847ebe7 Tue Aug 06 11:01:27 CDT 2013 Ian Munsie <imunsie@au1.ibm.com> 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>
|