aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-08-27 10:45:53 -0400
committerRob Herring <robh@kernel.org>2018-09-28 15:25:58 -0400
commit76ec23b127cd4ffeadc6fbc70d94a0c3df710405 (patch)
tree8cce2d2228964e632e819cdc375b6613c6265beb
parent7de8f4aa2f35583eea8efc7d7c2cc35d13964d97 (diff)
clk: mvebu: 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: Michael Turquette <mturquette@baylibre.com> Cc: linux-clk@vger.kernel.org Acked-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r--drivers/clk/mvebu/clk-cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/mvebu/clk-cpu.c b/drivers/clk/mvebu/clk-cpu.c
index 072aa38374ce..3045067448fb 100644
--- a/drivers/clk/mvebu/clk-cpu.c
+++ b/drivers/clk/mvebu/clk-cpu.c
@@ -183,7 +183,7 @@ static void __init of_cpu_clk_setup(struct device_node *node)
183 pr_warn("%s: pmu-dfs base register not set, dynamic frequency scaling not available\n", 183 pr_warn("%s: pmu-dfs base register not set, dynamic frequency scaling not available\n",
184 __func__); 184 __func__);
185 185
186 for_each_node_by_type(dn, "cpu") 186 for_each_of_cpu_node(dn)
187 ncpus++; 187 ncpus++;
188 188
189 cpuclk = kcalloc(ncpus, sizeof(*cpuclk), GFP_KERNEL); 189 cpuclk = kcalloc(ncpus, sizeof(*cpuclk), GFP_KERNEL);
@@ -194,7 +194,7 @@ static void __init of_cpu_clk_setup(struct device_node *node)
194 if (WARN_ON(!clks)) 194 if (WARN_ON(!clks))
195 goto clks_out; 195 goto clks_out;
196 196
197 for_each_node_by_type(dn, "cpu") { 197 for_each_of_cpu_node(dn) {
198 struct clk_init_data init; 198 struct clk_init_data init;
199 struct clk *clk; 199 struct clk *clk;
200 char *clk_name = kzalloc(5, GFP_KERNEL); 200 char *clk_name = kzalloc(5, GFP_KERNEL);