Skip to content

Commit d8e53c3

Browse files
bebarinoMike Turquette
authored andcommitted
clkdev: Don't print errors on probe defer
This error message can spam the logs if you have lots of probe deferals due to missing clocks. Just silence the error in this case because the driver should try again later. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Mike Turquette <mturquette@linaro.org>
1 parent a497c3b commit d8e53c3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎drivers/clk/clkdev.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ struct clk *of_clk_get_by_name(struct device_node *np, const char *name)
101101
if (!IS_ERR(clk))
102102
break;
103103
else if (name && index >= 0) {
104-
pr_err("ERROR: could not get clock %s:%s(%i)\n",
105-
np->full_name, name ? name : "", index);
104+
if (PTR_ERR(clk) != -EPROBE_DEFER)
105+
pr_err("ERROR: could not get clock %s:%s(%i)\n",
106+
np->full_name, name ? name : "", index);
106107
return clk;
107108
}
108109

0 commit comments

Comments
 (0)