Skip to content
Commit 9625e69a authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Michael Ellerman
Browse files

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: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 94d3084a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment