hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/clk/sunxi/clk-sun9i-core.c
....@@ -1,17 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright 2014 Chen-Yu Tsai
34 *
45 * Chen-Yu Tsai <wens@csie.org>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
156 */
167
178 #include <linux/clk.h>
....@@ -88,8 +79,8 @@
8879
8980 reg = of_io_request_and_map(node, 0, of_node_full_name(node));
9081 if (IS_ERR(reg)) {
91
- pr_err("Could not get registers for a80-pll4-clk: %s\n",
92
- node->name);
82
+ pr_err("Could not get registers for a80-pll4-clk: %pOFn\n",
83
+ node);
9384 return;
9485 }
9586
....@@ -142,8 +133,8 @@
142133
143134 reg = of_io_request_and_map(node, 0, of_node_full_name(node));
144135 if (IS_ERR(reg)) {
145
- pr_err("Could not get registers for a80-gt-clk: %s\n",
146
- node->name);
136
+ pr_err("Could not get registers for a80-gt-clk: %pOFn\n",
137
+ node);
147138 return;
148139 }
149140
....@@ -197,8 +188,8 @@
197188
198189 reg = of_io_request_and_map(node, 0, of_node_full_name(node));
199190 if (IS_ERR(reg)) {
200
- pr_err("Could not get registers for a80-ahb-clk: %s\n",
201
- node->name);
191
+ pr_err("Could not get registers for a80-ahb-clk: %pOFn\n",
192
+ node);
202193 return;
203194 }
204195
....@@ -223,8 +214,8 @@
223214
224215 reg = of_io_request_and_map(node, 0, of_node_full_name(node));
225216 if (IS_ERR(reg)) {
226
- pr_err("Could not get registers for a80-apb0-clk: %s\n",
227
- node->name);
217
+ pr_err("Could not get registers for a80-apb0-clk: %pOFn\n",
218
+ node);
228219 return;
229220 }
230221
....@@ -280,8 +271,8 @@
280271
281272 reg = of_io_request_and_map(node, 0, of_node_full_name(node));
282273 if (IS_ERR(reg)) {
283
- pr_err("Could not get registers for a80-apb1-clk: %s\n",
284
- node->name);
274
+ pr_err("Could not get registers for a80-apb1-clk: %pOFn\n",
275
+ node);
285276 return;
286277 }
287278