forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/clk/mmp/clk-gate.c
....@@ -99,7 +99,7 @@
9999 {
100100 struct mmp_clk_gate *gate;
101101 struct clk *clk;
102
- struct clk_init_data init = {};
102
+ struct clk_init_data init;
103103
104104 /* allocate the gate */
105105 gate = kzalloc(sizeof(*gate), GFP_KERNEL);
....@@ -108,7 +108,7 @@
108108
109109 init.name = name;
110110 init.ops = &mmp_clk_gate_ops;
111
- init.flags = flags | CLK_IS_BASIC;
111
+ init.flags = flags;
112112 init.parent_names = (parent_name ? &parent_name : NULL);
113113 init.num_parents = (parent_name ? 1 : 0);
114114