Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: clk-conf: Fix error message when clock isn't found

When failing to lookup the assigned clock for setting its parents, we
were previously printing a misleading error message that lead to think
that it was the parent clock what couldn't be found.

Change error message to make clear that it's the assigned clock what
couldn't be found in this case.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/1467962078-30405-1-git-send-email-tomeu.vizoso@collabora.com

authored by

Tomeu Vizoso and committed by
Michael Turquette
c200c39b a0fc8c4f

+1 -1
+1 -1
drivers/clk/clk-conf.c
··· 55 55 } 56 56 clk = of_clk_get_from_provider(&clkspec); 57 57 if (IS_ERR(clk)) { 58 - pr_warn("clk: couldn't get parent clock %d for %s\n", 58 + pr_warn("clk: couldn't get assigned clock %d for %s\n", 59 59 index, node->full_name); 60 60 rc = PTR_ERR(clk); 61 61 goto err;