forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 244b2c5ca8b14627e4a17755e5922221e121c771
kernel/drivers/clk/hisilicon/clk-hi3620.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Hisilicon Hi3620 clock 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>
....@@ -427,7 +413,7 @@
427413 {
428414 struct clk_mmc *mclk;
429415 struct clk *clk;
430
- struct clk_init_data init = {};
416
+ struct clk_init_data init;
431417
432418 mclk = kzalloc(sizeof(*mclk), GFP_KERNEL);
433419 if (!mclk)
....@@ -435,7 +421,7 @@
435421
436422 init.name = mmc_clk->name;
437423 init.ops = &clk_mmc_ops;
438
- init.flags = mmc_clk->flags | CLK_IS_BASIC;
424
+ init.flags = mmc_clk->flags;
439425 init.parent_names = (mmc_clk->parent_name ? &mmc_clk->parent_name : NULL);
440426 init.num_parents = (mmc_clk->parent_name ? 1 : 0);
441427 mclk->hw.init = &init;