forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/clk/imx/clk-imx25.c
....@@ -1,19 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2009 by Sascha Hauer, Pengutronix
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version 2
7
- * of the License, or (at your option) any later version.
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
12
- *
13
- * You should have received a copy of the GNU General Public License
14
- * along with this program; if not, write to the Free Software
15
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16
- * MA 02110-1301, USA.
174 */
185
196 #include <linux/kernel.h>
....@@ -85,16 +72,6 @@
8572 };
8673
8774 static struct clk *clk[clk_max];
88
-
89
-static struct clk ** const uart_clks[] __initconst = {
90
- &clk[uart_ipg_per],
91
- &clk[uart1_ipg],
92
- &clk[uart2_ipg],
93
- &clk[uart3_ipg],
94
- &clk[uart4_ipg],
95
- &clk[uart5_ipg],
96
- NULL
97
-};
9875
9976 static int __init __mx25_clocks_init(void __iomem *ccm_base)
10077 {
....@@ -241,7 +218,7 @@
241218 */
242219 clk_set_parent(clk[cko_sel], clk[ipg]);
243220
244
- imx_register_uart_clocks(uart_clks);
221
+ imx_register_uart_clocks(6);
245222
246223 return 0;
247224 }