forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/clk/versatile/clk-sp810.c
....@@ -1,12 +1,5 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
2
- * This program is free software; you can redistribute it and/or modify
3
- * it under the terms of the GNU General Public License version 2 as
4
- * published by the Free Software Foundation.
5
- *
6
- * This program is distributed in the hope that it will be useful,
7
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
8
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9
- * GNU General Public License for more details.
103 *
114 * Copyright (C) 2013 ARM Limited
125 */
....@@ -16,6 +9,7 @@
169 #include <linux/clk.h>
1710 #include <linux/clk-provider.h>
1811 #include <linux/err.h>
12
+#include <linux/io.h>
1913 #include <linux/of.h>
2014 #include <linux/of_address.h>
2115
....@@ -91,7 +85,7 @@
9185 const char *parent_names[2];
9286 int num = ARRAY_SIZE(parent_names);
9387 char name[12];
94
- struct clk_init_data init = {};
88
+ struct clk_init_data init;
9589 static int instance;
9690 int i;
9791 bool deprecated;
....@@ -111,7 +105,7 @@
111105
112106 init.name = name;
113107 init.ops = &clk_sp810_timerclken_ops;
114
- init.flags = CLK_IS_BASIC;
108
+ init.flags = 0;
115109 init.parent_names = parent_names;
116110 init.num_parents = num;
117111