riscv: use for_each_of_cpu_node iterator

Use the new for_each_of_cpu_node() helper to iterate over cpu nodes
instead of open coding. Note that this will allow matching also on the
node name instead of the (for FDT) deprecated device_type property.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
This commit is contained in:
Johan Hovold 2019-01-18 15:03:08 +01:00 • committed by Palmer Dabbelt
commit dd81c8ab81
No known key found for this signature in database
GPG key ID: EF4CA1502CCBAB41
2 changed files with 5 additions and 4 deletions