hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/clk/st/clkgen-fsyn.c
....@@ -1,10 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2014 STMicroelectronics R&D Ltd
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
7
- *
84 */
95
106 /*
....@@ -71,7 +67,6 @@
7167 };
7268
7369 static const struct clk_ops st_quadfs_pll_c32_ops;
74
-static const struct clk_ops st_quadfs_fs660c32_ops;
7570
7671 static int clk_fs660c32_dig_get_params(unsigned long input,
7772 unsigned long output, struct stm_fs *fs);
....@@ -390,7 +385,7 @@
390385 {
391386 struct st_clk_quadfs_pll *pll;
392387 struct clk *clk;
393
- struct clk_init_data init = {};
388
+ struct clk_init_data init;
394389
395390 /*
396391 * Sanity check required pointers.
....@@ -404,7 +399,7 @@
404399
405400 init.name = name;
406401 init.ops = quadfs->pll_ops;
407
- init.flags = CLK_IS_BASIC | CLK_GET_RATE_NOCACHE;
402
+ init.flags = CLK_GET_RATE_NOCACHE;
408403 init.parent_names = &parent_name;
409404 init.num_parents = 1;
410405
....@@ -795,7 +790,6 @@
795790 struct st_clk_quadfs_fsynth *fs = to_quadfs_fsynth(hw);
796791 struct stm_fs params;
797792 long hwrate;
798
- int uninitialized_var(i);
799793
800794 if (!rate || !parent_rate)
801795 return -EINVAL;
....@@ -829,7 +823,7 @@
829823 {
830824 struct st_clk_quadfs_fsynth *fs;
831825 struct clk *clk;
832
- struct clk_init_data init = {};
826
+ struct clk_init_data init;
833827
834828 /*
835829 * Sanity check required pointers, note that nsdiv3 is optional.
....@@ -843,7 +837,7 @@
843837
844838 init.name = name;
845839 init.ops = &st_quadfs_ops;
846
- init.flags = flags | CLK_GET_RATE_NOCACHE | CLK_IS_BASIC;
840
+ init.flags = flags | CLK_GET_RATE_NOCACHE;
847841 init.parent_names = &parent_name;
848842 init.num_parents = 1;
849843
....@@ -936,7 +930,7 @@
936930 if (!clk_parent_name)
937931 return;
938932
939
- pll_name = kasprintf(GFP_KERNEL, "%s.pll", np->name);
933
+ pll_name = kasprintf(GFP_KERNEL, "%pOFn.pll", np);
940934 if (!pll_name)
941935 return;
942936