hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/clk/pistachio/clk-pll.c
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2014 Google, Inc.
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms and conditions of the GNU General Public License,
6
- * version 2, as published by the Free Software Foundation.
74 */
85
96 #define pr_fmt(fmt) "%s: " fmt, __func__
....@@ -298,7 +295,7 @@
298295 return rate;
299296 }
300297
301
-static struct clk_ops pll_gf40lp_frac_ops = {
298
+static const struct clk_ops pll_gf40lp_frac_ops = {
302299 .enable = pll_gf40lp_frac_enable,
303300 .disable = pll_gf40lp_frac_disable,
304301 .is_enabled = pll_gf40lp_frac_is_enabled,
....@@ -307,7 +304,7 @@
307304 .set_rate = pll_gf40lp_frac_set_rate,
308305 };
309306
310
-static struct clk_ops pll_gf40lp_frac_fixed_ops = {
307
+static const struct clk_ops pll_gf40lp_frac_fixed_ops = {
311308 .enable = pll_gf40lp_frac_enable,
312309 .disable = pll_gf40lp_frac_disable,
313310 .is_enabled = pll_gf40lp_frac_is_enabled,
....@@ -430,7 +427,7 @@
430427 return rate;
431428 }
432429
433
-static struct clk_ops pll_gf40lp_laint_ops = {
430
+static const struct clk_ops pll_gf40lp_laint_ops = {
434431 .enable = pll_gf40lp_laint_enable,
435432 .disable = pll_gf40lp_laint_disable,
436433 .is_enabled = pll_gf40lp_laint_is_enabled,
....@@ -439,7 +436,7 @@
439436 .set_rate = pll_gf40lp_laint_set_rate,
440437 };
441438
442
-static struct clk_ops pll_gf40lp_laint_fixed_ops = {
439
+static const struct clk_ops pll_gf40lp_laint_fixed_ops = {
443440 .enable = pll_gf40lp_laint_enable,
444441 .disable = pll_gf40lp_laint_disable,
445442 .is_enabled = pll_gf40lp_laint_is_enabled,
....@@ -453,7 +450,7 @@
453450 unsigned int nr_rates)
454451 {
455452 struct pistachio_clk_pll *pll;
456
- struct clk_init_data init = {};
453
+ struct clk_init_data init;
457454 struct clk *clk;
458455
459456 pll = kzalloc(sizeof(*pll), GFP_KERNEL);