Skip to content

Commit f6d6c11

Browse files
MikeLooijmansbebarino
authored andcommitted
clk: lmk04832: Set missing parent_names for output clocks
lmk04832_register_clkout forgot to fill in the parent_names, resulting in the error message "Must specify parents if num_parents > 0". Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Link: https://lore.kernel.org/r/20230802064100.15793-1-mike.looijmans@topic.nl Reviewed-by: Liam Beguin <liambeguin@gmail.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 06c2afb commit f6d6c11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clk/clk-lmk04832.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,6 +1297,7 @@ static int lmk04832_register_clkout(struct lmk04832 *lmk, const int num)
12971297
sprintf(dclk_name, "lmk-dclk%02d_%02d", num, num + 1);
12981298
init.name = dclk_name;
12991299
parent_names[0] = clk_hw_get_name(&lmk->vco);
1300+
init.parent_names = parent_names;
13001301
init.ops = &lmk04832_dclk_ops;
13011302
init.flags = CLK_SET_RATE_PARENT;
13021303
init.num_parents = 1;

0 commit comments

Comments
 (0)