diff options
author | Rob Herring <robh@kernel.org> | 2018-08-27 18:53:34 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2018-09-28 22:25:58 +0300 |
commit | d4866f751edf6d46d523b75979b3c6affed16510 (patch) | |
tree | 92f6f68597782c866d802d000c95e9ba2ac8d772 /arch/arm/kernel | |
parent | 6487c15f1cc9340fa010d94eeab72ebb657b21dc (diff) | |
download | linux-d4866f751edf6d46d523b75979b3c6affed16510.tar.xz |
ARM: 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".
Cc: Russell King <linux@armlinux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/devtree.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/kernel/devtree.c b/arch/arm/kernel/devtree.c index ecaa68dd1af5..13bcd3b867cb 100644 --- a/arch/arm/kernel/devtree.c +++ b/arch/arm/kernel/devtree.c @@ -87,14 +87,11 @@ void __init arm_dt_init_cpu_maps(void) if (!cpus) return; - for_each_child_of_node(cpus, cpu) { + for_each_of_cpu_node(cpu) { const __be32 *cell; int prop_bytes; u32 hwid; - if (of_node_cmp(cpu->type, "cpu")) - continue; - pr_debug(" * %pOF...\n", cpu); /* * A device tree containing CPU nodes with missing "reg" |