powerpc: Remove big endianness assumption in of_find_next_cache_node
authorSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Wed, 18 Sep 2013 10:53:04 +0000 (11:53 +0100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 31 Oct 2013 05:19:18 +0000 (16:19 +1100)
commitafaf53985431bb295e4b723b08a55d0540cf8070
treee4d023321dd6c5fa0bda5290dbf7ffa137896cd9
parent7ba5fef7d9e1880635cbb2fd698e8a24dc366d0f
powerpc: Remove big endianness assumption in of_find_next_cache_node

Currently big endianness of the device tree data is assumed in
of_find_next_cache_node for 'handle' when calling of_find_node_by_phandle.

In preparation to move this function to common code, this patch fixes
the endianness using 'be32_to_cpup'

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/prom.c