powerpc: use for_each_of_cpu_node iterator
authorRob Herring <robh@kernel.org>
Mon, 27 Aug 2018 17:24:09 +0000 (12:24 -0500)
committerRob Herring <robh@kernel.org>
Fri, 28 Sep 2018 19:25:58 +0000 (14:25 -0500)
commita94fe366340ac4d19f8bd88850ab681d9022f3ae
tree1e311327a0589cd9754398afa7933e2fc5e7c112
parent5e5abae858b5d3d060a441cc5da0859cd8cb2c82
powerpc: use for_each_of_cpu_node iterator

Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This
has the side effect of defaulting to iterating using "cpu" node names in
preference to the deprecated (for FDT) device_type == "cpu".

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Rob Herring <robh@kernel.org>
arch/powerpc/platforms/powermac/feature.c
arch/powerpc/platforms/powermac/setup.c