]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
clk: lmk04832: Set missing parent_names for output clocks
authorMike Looijmans <mike.looijmans@topic.nl>
Wed, 2 Aug 2023 06:40:58 +0000 (08:40 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 23 Aug 2023 22:47:27 +0000 (15:47 -0700)
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>
drivers/clk/clk-lmk04832.c

index e22ac93e0c2f0bfe1ac45f8e11a6c5d48087f9db..188085e7a30bab861e3feb49eaa1af43099d5050 100644 (file)
@@ -1297,6 +1297,7 @@ static int lmk04832_register_clkout(struct lmk04832 *lmk, const int num)
                sprintf(dclk_name, "lmk-dclk%02d_%02d", num, num + 1);
                init.name = dclk_name;
                parent_names[0] = clk_hw_get_name(&lmk->vco);
+               init.parent_names = parent_names;
                init.ops = &lmk04832_dclk_ops;
                init.flags = CLK_SET_RATE_PARENT;
                init.num_parents = 1;