]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: make use of for_each_node_by_type() instead of open-coding it
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 1 Feb 2017 01:54:38 +0000 (17:54 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 16 Jan 2018 12:47:10 +0000 (23:47 +1100)
commit582e943f30cacaf6077827fac39d175d11019bce
treef142f6f3f9a129f8849b849a0a3a51365603e2ca
parent596c3b1e04716288a21230b45e414782c84d17cc
powerpc: make use of for_each_node_by_type() instead of open-coding it

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

Also fixed a couple of refcount leaks in the aforementioned loops.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/setup-common.c
arch/powerpc/platforms/cell/spu_manage.c
arch/powerpc/platforms/powermac/pic.c
arch/powerpc/platforms/powermac/smp.c
arch/powerpc/platforms/pseries/lparcfg.c