powerpc: Use for_each_node_by_type instead of open coding it