forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/clk/renesas/clk-rz.c
....@@ -1,17 +1,15 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * RZ/A1 Core CPG Clocks
34 *
45 * Copyright (C) 2013 Ideas On Board SPRL
56 * Copyright (C) 2014 Wolfram Sang, Sang Engineering <wsa@sang-engineering.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; version 2 of the License.
107 */
118
129 #include <linux/clk-provider.h>
1310 #include <linux/clk/renesas.h>
1411 #include <linux/init.h>
12
+#include <linux/io.h>
1513 #include <linux/kernel.h>
1614 #include <linux/of.h>
1715 #include <linux/of_address.h>
....@@ -39,8 +37,8 @@
3937 void __iomem *ppr0, *pibc0;
4038 u16 modes;
4139
42
- ppr0 = ioremap_nocache(PPR0, 2);
43
- pibc0 = ioremap_nocache(PIBC0, 2);
40
+ ppr0 = ioremap(PPR0, 2);
41
+ pibc0 = ioremap(PIBC0, 2);
4442 BUG_ON(!ppr0 || !pibc0);
4543 iowrite16(4, pibc0); /* enable input buffer */
4644 modes = ioread16(ppr0);
....@@ -113,8 +111,8 @@
113111
114112 clk = rz_cpg_register_clock(np, cpg, name);
115113 if (IS_ERR(clk))
116
- pr_err("%s: failed to register %s %s clock (%ld)\n",
117
- __func__, np->name, name, PTR_ERR(clk));
114
+ pr_err("%s: failed to register %pOFn %s clock (%ld)\n",
115
+ __func__, np, name, PTR_ERR(clk));
118116 else
119117 cpg->data.clks[i] = clk;
120118 }