forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/clk/sunxi/clk-mod0.c
....@@ -1,21 +1,13 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright 2013 Emilio López
34 *
45 * Emilio López <emilio@elopez.com.ar>
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>
189 #include <linux/clk-provider.h>
10
+#include <linux/io.h>
1911 #include <linux/of_address.h>
2012 #include <linux/platform_device.h>
2113 #include <linux/slab.h>
....@@ -140,8 +132,8 @@
140132
141133 reg = of_io_request_and_map(node, 0, of_node_full_name(node));
142134 if (IS_ERR(reg)) {
143
- pr_err("Could not get registers for mod0-clk: %s\n",
144
- node->name);
135
+ pr_err("Could not get registers for mod0-clk: %pOFn\n",
136
+ node);
145137 return;
146138 }
147139
....@@ -306,7 +298,7 @@
306298
307299 reg = of_io_request_and_map(node, 0, of_node_full_name(node));
308300 if (IS_ERR(reg)) {
309
- pr_err("Couldn't map the %s clock registers\n", node->name);
301
+ pr_err("Couldn't map the %pOFn clock registers\n", node);
310302 return;
311303 }
312304