Skip to content
Commit 5e5abae8 authored by Rob Herring's avatar Rob Herring
Browse files

openrisc: use for_each_of_cpu_node iterator



Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This
has the side effect of defaulting to iterating using "cpu" node names in
preference to the deprecated (for FDT) device_type == "cpu".

This also fixes a leaked reference for cpus node.

Cc: Jonas Bonn <jonas@southpole.se>
Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Cc: openrisc@lists.librecores.org
Acked-by: default avatarStafford Horne <shorne@gmail.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 1f0fe1f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment