[PATCH] drivers: clk: clk-conf.c: Move err to warn msg for clk re-parenting

From: Steffen Kothe
Date: Wed Nov 09 2022 - 13:45:26 EST


Failed clock re-parenting does not necessarily imply critical errors
since systems can initialize clocks which prohibit it by default and
purpose.

The error does not even imply any required handling which should treat
as a warning then.

Signed-off-by: Steffen Kothe <steffen.kothe@xxxxxxxxx>
---
drivers/clk/clk-conf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clk-conf.c b/drivers/clk/clk-conf.c
index 2ef819606c417..d83591dc22356 100644
--- a/drivers/clk/clk-conf.c
+++ b/drivers/clk/clk-conf.c
@@ -62,7 +62,7 @@ static int __set_clk_parents(struct device_node *node, bool clk_supplier)

rc = clk_set_parent(clk, pclk);
if (rc < 0)
- pr_err("clk: failed to reparent %s to %s: %d\n",
+ pr_warn("clk: failed to reparent %s to %s: %d\n",
__clk_get_name(clk), __clk_get_name(pclk), rc);
clk_put(clk);
clk_put(pclk);
--
2.30.2