powerpc: Use of for_each_node_by_name() instead of open-coding it
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 1 Feb 2017 01:54:37 +0000 (17:54 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 4 Dec 2017 02:10:59 +0000 (13:10 +1100)
commit0aa8ff9b76282300d16e0a1403b115996ff88a4c
treef3d5d120a2f4097f1d9857f71bb6b6a1e081eb2f
parentdf26200299eb05fa7d059cd235847efc4c4baf80
powerpc: Use of for_each_node_by_name() instead of open-coding it

Instead of manually coding the loop with of_find_node_by_name(), let's
switch to the standard macro for iterating over nodes with given name.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
[mpe: Fix build failures due to typo in mpc832x_mds.c]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/83xx/mpc832x_mds.c
arch/powerpc/platforms/83xx/mpc832x_rdb.c
arch/powerpc/platforms/83xx/mpc836x_mds.c
arch/powerpc/platforms/cell/interrupt.c
arch/powerpc/platforms/cell/setup.c
arch/powerpc/platforms/cell/spider-pic.c
arch/powerpc/platforms/powermac/feature.c