.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * 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. |
---|
7 | 4 | */ |
---|
8 | 5 | |
---|
9 | 6 | #define pr_fmt(fmt) "%s: " fmt, __func__ |
---|
.. | .. |
---|
298 | 295 | return rate; |
---|
299 | 296 | } |
---|
300 | 297 | |
---|
301 | | -static struct clk_ops pll_gf40lp_frac_ops = { |
---|
| 298 | +static const struct clk_ops pll_gf40lp_frac_ops = { |
---|
302 | 299 | .enable = pll_gf40lp_frac_enable, |
---|
303 | 300 | .disable = pll_gf40lp_frac_disable, |
---|
304 | 301 | .is_enabled = pll_gf40lp_frac_is_enabled, |
---|
.. | .. |
---|
307 | 304 | .set_rate = pll_gf40lp_frac_set_rate, |
---|
308 | 305 | }; |
---|
309 | 306 | |
---|
310 | | -static struct clk_ops pll_gf40lp_frac_fixed_ops = { |
---|
| 307 | +static const struct clk_ops pll_gf40lp_frac_fixed_ops = { |
---|
311 | 308 | .enable = pll_gf40lp_frac_enable, |
---|
312 | 309 | .disable = pll_gf40lp_frac_disable, |
---|
313 | 310 | .is_enabled = pll_gf40lp_frac_is_enabled, |
---|
.. | .. |
---|
430 | 427 | return rate; |
---|
431 | 428 | } |
---|
432 | 429 | |
---|
433 | | -static struct clk_ops pll_gf40lp_laint_ops = { |
---|
| 430 | +static const struct clk_ops pll_gf40lp_laint_ops = { |
---|
434 | 431 | .enable = pll_gf40lp_laint_enable, |
---|
435 | 432 | .disable = pll_gf40lp_laint_disable, |
---|
436 | 433 | .is_enabled = pll_gf40lp_laint_is_enabled, |
---|
.. | .. |
---|
439 | 436 | .set_rate = pll_gf40lp_laint_set_rate, |
---|
440 | 437 | }; |
---|
441 | 438 | |
---|
442 | | -static struct clk_ops pll_gf40lp_laint_fixed_ops = { |
---|
| 439 | +static const struct clk_ops pll_gf40lp_laint_fixed_ops = { |
---|
443 | 440 | .enable = pll_gf40lp_laint_enable, |
---|
444 | 441 | .disable = pll_gf40lp_laint_disable, |
---|
445 | 442 | .is_enabled = pll_gf40lp_laint_is_enabled, |
---|
.. | .. |
---|
453 | 450 | unsigned int nr_rates) |
---|
454 | 451 | { |
---|
455 | 452 | struct pistachio_clk_pll *pll; |
---|
456 | | - struct clk_init_data init = {}; |
---|
| 453 | + struct clk_init_data init; |
---|
457 | 454 | struct clk *clk; |
---|
458 | 455 | |
---|
459 | 456 | pll = kzalloc(sizeof(*pll), GFP_KERNEL); |
---|