Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Stephen Boyd and committed by
Mike Turquette
d8e53c3d a497c3ba

+3 -2
+3 -2
drivers/clk/clkdev.c
··· 101 101 if (!IS_ERR(clk)) 102 102 break; 103 103 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); 106 107 return clk; 107 108 } 108 109