[PATCH] clk: change log_err() to log_info() to make it quiet with clk_register_fixed_rate()

notfound405 forbidden405 at foxmail.com
Tue Mar 28 18:51:44 CEST 2023


clk_register_fixed_rate() calls clk_register() with the fourth
argument(parent_name) being NULL, making it output error message. Change
to log_info() to fix it.

Signed-off-by: notfound405 <forbidden405 at foxmail.com>
---
 drivers/clk/clk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index a5a3461b66..0619937cee 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -24,7 +24,7 @@ int clk_register(struct clk *clk, const char *drv_name,
 
 	ret = uclass_get_device_by_name(UCLASS_CLK, parent_name, &parent);
 	if (ret) {
-		log_err("%s: failed to get %s device (parent of %s)\n",
+		log_info("%s: failed to get %s device (parent of %s)\n",
 			__func__, parent_name, name);
 	} else {
 		log_debug("%s: name: %s parent: %s [0x%p]\n", __func__, name,
-- 
2.39.2



More information about the U-Boot mailing list