mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
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>
This commit is contained in:
parent
7ba5fef7d9
commit
afaf539854
1 changed files with 1 additions and 1 deletions
|
@ -778,7 +778,7 @@ struct device_node *of_find_next_cache_node(struct device_node *np)
|
|||
handle = of_get_property(np, "next-level-cache", NULL);
|
||||
|
||||
if (handle)
|
||||
return of_find_node_by_phandle(*handle);
|
||||
return of_find_node_by_phandle(be32_to_cpup(handle));
|
||||
|
||||
/* OF on pmac has nodes instead of properties named "l2-cache"
|
||||
* beneath CPU nodes.
|
||||
|
|
Loading…
Reference in a new issue