forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/clk/mvebu/clk-cpu.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * Marvell MVEBU CPU clock handling.
34 *
....@@ -5,9 +6,6 @@
56 *
67 * Gregory CLEMENT <gregory.clement@free-electrons.com>
78 *
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.
119 */
1210 #include <linux/kernel.h>
1311 #include <linux/slab.h>
....@@ -183,7 +181,7 @@
183181 pr_warn("%s: pmu-dfs base register not set, dynamic frequency scaling not available\n",
184182 __func__);
185183
186
- for_each_node_by_type(dn, "cpu")
184
+ for_each_of_cpu_node(dn)
187185 ncpus++;
188186
189187 cpuclk = kcalloc(ncpus, sizeof(*cpuclk), GFP_KERNEL);
....@@ -194,8 +192,8 @@
194192 if (WARN_ON(!clks))
195193 goto clks_out;
196194
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;
199197 struct clk *clk;
200198 char *clk_name = kzalloc(5, GFP_KERNEL);
201199 int cpu, err;