[PATCH] clk: change log_err() to log_info() to make it quiet with clk_register_fixed_rate()
Sean Anderson
seanga2 at gmail.com
Wed Nov 1 19:26:21 CET 2023
On 3/28/23 13:03, notfound405 wrote:
> 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 <forbidden405 at foxmail.com>
> ---
> 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(-)
>
> 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,
cf: https://lore.kernel.org/u-boot/20230818-clk-fix-v1-2-49ec18f820bf@outlook.com/
More information about the U-Boot
mailing list