hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/clk/loongson1/clk.c
....@@ -1,14 +1,12 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) 2012-2016 Zhang, Keguang <keguang.zhang@gmail.com>
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms of the GNU General Public License as published by the
6
- * Free Software Foundation; either version 2 of the License, or (at your
7
- * option) any later version.
84 */
95
106 #include <linux/clk-provider.h>
117 #include <linux/slab.h>
8
+
9
+#include "clk.h"
1210
1311 struct clk_hw *__init clk_hw_register_pll(struct device *dev,
1412 const char *name,
....@@ -18,7 +16,7 @@
1816 {
1917 int ret;
2018 struct clk_hw *hw;
21
- struct clk_init_data init = {};
19
+ struct clk_init_data init;
2220
2321 /* allocate the divider */
2422 hw = kzalloc(sizeof(*hw), GFP_KERNEL);
....@@ -27,9 +25,9 @@
2725
2826 init.name = name;
2927 init.ops = ops;
30
- init.flags = flags | CLK_IS_BASIC;
31
- init.parent_names = (parent_name ? &parent_name : NULL);
32
- init.num_parents = (parent_name ? 1 : 0);
28
+ init.flags = flags;
29
+ init.parent_names = parent_name ? &parent_name : NULL;
30
+ init.num_parents = parent_name ? 1 : 0;
3331 hw->init = &init;
3432
3533 /* register the clock */