hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/clk/mmp/clk-mix.c
....@@ -419,12 +419,14 @@
419419 }
420420 }
421421
422
-static void mmp_clk_mix_init(struct clk_hw *hw)
422
+static int mmp_clk_mix_init(struct clk_hw *hw)
423423 {
424424 struct mmp_clk_mix *mix = to_clk_mix(hw);
425425
426426 if (mix->table)
427427 _filter_clk_table(mix, mix->table, mix->table_size);
428
+
429
+ return 0;
428430 }
429431
430432 const struct clk_ops mmp_clk_mix_ops = {
....@@ -439,7 +441,7 @@
439441
440442 struct clk *mmp_clk_register_mix(struct device *dev,
441443 const char *name,
442
- const char **parent_names,
444
+ const char * const *parent_names,
443445 u8 num_parents,
444446 unsigned long flags,
445447 struct mmp_clk_mix_config *config,
....@@ -447,7 +449,7 @@
447449 {
448450 struct mmp_clk_mix *mix;
449451 struct clk *clk;
450
- struct clk_init_data init = {};
452
+ struct clk_init_data init;
451453 size_t table_bytes;
452454
453455 mix = kzalloc(sizeof(*mix), GFP_KERNEL);