hc
2024-05-10 ee930fffee469d076998274a2ca55e13dc1efb67
kernel/drivers/clk/socfpga/clk-pll-a10.c
....@@ -1,17 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2015 Altera Corporation. All rights reserved
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms and conditions of the GNU General Public License,
6
- * version 2, as published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope it will be useful, but WITHOUT
9
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
- * more details.
12
- *
13
- * You should have received a copy of the GNU General Public License along with
14
- * this program. If not, see <http://www.gnu.org/licenses/>.
154 */
165 #include <linux/slab.h>
176 #include <linux/clk-provider.h>
....@@ -69,7 +58,7 @@
6958 CLK_MGR_PLL_CLK_SRC_MASK;
7059 }
7160
72
-static struct clk_ops clk_pll_ops = {
61
+static const struct clk_ops clk_pll_ops = {
7362 .recalc_rate = clk_pll_recalc_rate,
7463 .get_parent = clk_pll_get_parent,
7564 };
....@@ -82,7 +71,7 @@
8271 struct socfpga_pll *pll_clk;
8372 const char *clk_name = node->name;
8473 const char *parent_name[SOCFGPA_MAX_PARENTS];
85
- struct clk_init_data init = {};
74
+ struct clk_init_data init;
8675 struct device_node *clkmgr_np;
8776 int rc;
8877 int i = 0;
....@@ -113,8 +102,6 @@
113102 pll_clk->hw.hw.init = &init;
114103
115104 pll_clk->hw.bit_idx = SOCFPGA_PLL_EXT_ENA;
116
- clk_pll_ops.enable = clk_gate_ops.enable;
117
- clk_pll_ops.disable = clk_gate_ops.disable;
118105
119106 clk = clk_register(NULL, &pll_clk->hw.hw);
120107 if (WARN_ON(IS_ERR(clk))) {