Skip to content

Commit 76ec23b

Browse files
committed
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>
1 parent 7de8f4a commit 76ec23b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/mvebu/clk-cpu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ static void __init of_cpu_clk_setup(struct device_node *node)
183183
pr_warn("%s: pmu-dfs base register not set, dynamic frequency scaling not available\n",
184184
__func__);
185185

186-
for_each_node_by_type(dn, "cpu")
186+
for_each_of_cpu_node(dn)
187187
ncpus++;
188188

189189
cpuclk = kcalloc(ncpus, sizeof(*cpuclk), GFP_KERNEL);
@@ -194,7 +194,7 @@ static void __init of_cpu_clk_setup(struct device_node *node)
194194
if (WARN_ON(!clks))
195195
goto clks_out;
196196

197-
for_each_node_by_type(dn, "cpu") {
197+
for_each_of_cpu_node(dn) {
198198
struct clk_init_data init;
199199
struct clk *clk;
200200
char *clk_name = kzalloc(5, GFP_KERNEL);

0 commit comments

Comments
 (0)