aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-08-27 09:43:40 -0500
committerRob Herring <robh@kernel.org>2018-09-28 14:25:58 -0500
commit8cabf5bc10499cbce8ed8f377b7c978717e3952c (patch)
tree7c8a7ee515ae110eef8e9704b453483707df9561 /arch/sh/boards
parentpowerpc: 8xx: get cpu node with of_get_cpu_node (diff)
downloadlinux-dev-8cabf5bc10499cbce8ed8f377b7c978717e3952c.tar.xz
linux-dev-8cabf5bc10499cbce8ed8f377b7c978717e3952c.zip
SH: 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: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> Cc: linux-sh@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'arch/sh/boards')
-rw-r--r--arch/sh/boards/of-generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/boards/of-generic.c b/arch/sh/boards/of-generic.c
index 26789ad28193..cde370cad4ae 100644
--- a/arch/sh/boards/of-generic.c
+++ b/arch/sh/boards/of-generic.c
@@ -64,7 +64,7 @@ static void sh_of_smp_probe(void)
init_cpu_possible(cpumask_of(0));
- for_each_node_by_type(np, "cpu") {
+ for_each_of_cpu_node(np) {
const __be32 *cell = of_get_property(np, "reg", NULL);
u64 id = -1;
if (cell) id = of_read_number(cell, of_n_addr_cells(np));