powerpc: Use of_node_name_eq for node name comparisons
authorRob Herring <robh@kernel.org>
Wed, 5 Dec 2018 19:50:18 +0000 (13:50 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 22 Dec 2018 10:29:50 +0000 (21:29 +1100)
commit2c8e65b595cf0bf7c1413404dff9b928a64d27cb
tree88944063653016523cd63a065876c507ab1651c0
parent0d1223dd9273b2ba3e965a81092a239405a4931c
powerpc: Use of_node_name_eq for node name comparisons

Convert string compares of DT node names to use of_node_name_eq helper
instead. This removes direct access to the node name pointer.

A couple of open coded iterating thru the child node names are converted
to use for_each_child_of_node() instead.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
15 files changed:
arch/powerpc/kernel/legacy_serial.c
arch/powerpc/platforms/44x/warp.c
arch/powerpc/platforms/52xx/efika.c
arch/powerpc/platforms/cell/setup.c
arch/powerpc/platforms/cell/spu_manage.c
arch/powerpc/platforms/chrp/setup.c
arch/powerpc/platforms/powermac/feature.c
arch/powerpc/platforms/powermac/low_i2c.c
arch/powerpc/platforms/powermac/pci.c
arch/powerpc/platforms/powermac/pfunc_base.c
arch/powerpc/platforms/powermac/pic.c
arch/powerpc/platforms/powermac/setup.c
arch/powerpc/platforms/powermac/udbg_scc.c
arch/powerpc/platforms/powernv/opal.c
arch/powerpc/platforms/pseries/setup.c