| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Marvell MVEBU CPU clock handling. |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Gregory CLEMENT <gregory.clement@free-electrons.com> |
|---|
| 7 | 8 | * |
|---|
| 8 | | - * This file is licensed under the terms of the GNU General Public |
|---|
| 9 | | - * License version 2. This program is licensed "as is" without any |
|---|
| 10 | | - * warranty of any kind, whether express or implied. |
|---|
| 11 | 9 | */ |
|---|
| 12 | 10 | #include <linux/kernel.h> |
|---|
| 13 | 11 | #include <linux/slab.h> |
|---|
| .. | .. |
|---|
| 183 | 181 | pr_warn("%s: pmu-dfs base register not set, dynamic frequency scaling not available\n", |
|---|
| 184 | 182 | __func__); |
|---|
| 185 | 183 | |
|---|
| 186 | | - for_each_node_by_type(dn, "cpu") |
|---|
| 184 | + for_each_of_cpu_node(dn) |
|---|
| 187 | 185 | ncpus++; |
|---|
| 188 | 186 | |
|---|
| 189 | 187 | cpuclk = kcalloc(ncpus, sizeof(*cpuclk), GFP_KERNEL); |
|---|
| .. | .. |
|---|
| 194 | 192 | if (WARN_ON(!clks)) |
|---|
| 195 | 193 | goto clks_out; |
|---|
| 196 | 194 | |
|---|
| 197 | | - for_each_node_by_type(dn, "cpu") { |
|---|
| 198 | | - struct clk_init_data init = {}; |
|---|
| 195 | + for_each_of_cpu_node(dn) { |
|---|
| 196 | + struct clk_init_data init; |
|---|
| 199 | 197 | struct clk *clk; |
|---|
| 200 | 198 | char *clk_name = kzalloc(5, GFP_KERNEL); |
|---|
| 201 | 199 | int cpu, err; |
|---|