forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/clk/hisilicon/clkgate-separated.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Hisilicon clock separated gate driver
34 *
....@@ -6,21 +7,6 @@
67 *
78 * Author: Haojian Zhuang <haojian.zhuang@linaro.org>
89 * Xin Li <li.xin@linaro.org>
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License along
21
- * with this program; if not, write to the Free Software Foundation, Inc.,
22
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23
- *
2410 */
2511
2612 #include <linux/kernel.h>
....@@ -102,7 +88,7 @@
10288 {
10389 struct clkgate_separated *sclk;
10490 struct clk *clk;
105
- struct clk_init_data init = {};
91
+ struct clk_init_data init;
10692
10793 sclk = kzalloc(sizeof(*sclk), GFP_KERNEL);
10894 if (!sclk)
....@@ -110,7 +96,7 @@
11096
11197 init.name = name;
11298 init.ops = &clkgate_separated_ops;
113
- init.flags = flags | CLK_IS_BASIC;
99
+ init.flags = flags;
114100 init.parent_names = (parent_name ? &parent_name : NULL);
115101 init.num_parents = (parent_name ? 1 : 0);
116102