]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Avoid explicit endian conversions while parsing device tree
authorPreeti U Murthy <preeti@linux.vnet.ibm.com>
Tue, 3 Feb 2015 06:43:44 +0000 (12:13 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 26 Mar 2015 04:23:18 +0000 (15:23 +1100)
commit680423c6fe227b1e8f80ca70c021229a39730929
treeca871762ae0da9fc9872ab1aadc8e3ccab7ac311
parent3ef463f09f7d7ec4c8894e158fe80b2af2be2e1c
powerpc/powernv: Avoid explicit endian conversions while parsing device tree

We currently read the information about idle states from the device
tree, so as to find out the CPU idle states supported by the platform.

Use the of_property_read/count_xxx() APIs, which handle endian
conversions for us, and mean we don't need any endian annotations in the
code.

Signed-off-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/setup.c