clk: change log_err() to log_info() to make it quiet with clk_register_fixed_rate()
PATCH 1/1 clk: change log_err() to log_info() to make it quiet with clk_register_fixed_rate()
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 Yang Xiwen <[email protected]>
---
The previous email is signed with a wrong name. The patch is not modified.
drivers/clk/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/clk.c +1 -1
@@ -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,
Signature · 1 line
2.39.2
Quoted 17 lines · On 3/28/23 13:03, notfound405 wrote:
clk_register_fixed_rate()callsclk_register()with the fourthargument(parent_name)being NULL, making it output error message. Change tolog_info()to fix it.Signed-off-by Yang Xiwen <[email protected]>---
The previous email is signed with a wrong name. The patch is not modified.drivers/clk/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clk/clk.c +0
-0
drivers/clk/clk.c int clk_register(struct clk *clk, const char *drv_name, · line 30
Quoted 8 lines
drivers/clk/clk.c +1
-1@@ -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,