forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/clk/hisilicon/clk-hix5hd2.c
....@@ -1,10 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2014 Linaro Ltd.
34 * Copyright (c) 2014 Hisilicon Limited.
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms and conditions of the GNU General Public License,
7
- * version 2, as published by the Free Software Foundation.
85 */
96
107 #include <linux/of_address.h>
....@@ -262,7 +259,7 @@
262259 for (i = 0; i < nums; i++) {
263260 struct hix5hd2_clk_complex *p_clk;
264261 struct clk *clk;
265
- struct clk_init_data init = {};
262
+ struct clk_init_data init;
266263
267264 p_clk = kzalloc(sizeof(*p_clk), GFP_KERNEL);
268265 if (!p_clk)
....@@ -274,7 +271,7 @@
274271 else
275272 init.ops = &clk_complex_ops;
276273
277
- init.flags = CLK_IS_BASIC;
274
+ init.flags = 0;
278275 init.parent_names =
279276 (clks[i].parent_name ? &clks[i].parent_name : NULL);
280277 init.num_parents = (clks[i].parent_name ? 1 : 0);