forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/clk/renesas/clk-emev2.c
....@@ -1,21 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * EMMA Mobile EV2 common clock framework support
34 *
45 * Copyright (C) 2013 Takashi Yoshii <takashi.yoshii.ze@renesas.com>
56 * Copyright (C) 2012 Magnus Damm
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.
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.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
197 */
208 #include <linux/clk-provider.h>
219 #include <linux/clkdev.h>
....@@ -86,8 +74,8 @@
8674 clk = clk_register_divider(NULL, np->name, parent_name, 0,
8775 smu_base + reg[0], reg[1], 8, 0, &lock);
8876 of_clk_add_provider(np, of_clk_src_simple_get, clk);
89
- clk_register_clkdev(clk, np->name, NULL);
90
- pr_debug("## %s %s %p\n", __func__, np->name, clk);
77
+ clk_register_clkdev(clk, np->full_name, NULL);
78
+ pr_debug("## %s %pOFn %p\n", __func__, np, clk);
9179 }
9280 CLK_OF_DECLARE(emev2_smu_clkdiv, "renesas,emev2-smu-clkdiv",
9381 emev2_smu_clkdiv_init);
....@@ -104,7 +92,7 @@
10492 clk = clk_register_gate(NULL, np->name, parent_name, 0,
10593 smu_base + reg[0], reg[1], 0, &lock);
10694 of_clk_add_provider(np, of_clk_src_simple_get, clk);
107
- clk_register_clkdev(clk, np->name, NULL);
108
- pr_debug("## %s %s %p\n", __func__, np->name, clk);
95
+ clk_register_clkdev(clk, np->full_name, NULL);
96
+ pr_debug("## %s %pOFn %p\n", __func__, np, clk);
10997 }
11098 CLK_OF_DECLARE(emev2_smu_gclk, "renesas,emev2-smu-gclk", emev2_smu_gclk_init);