From: Stephen Boyd Date: Fri, 13 Jun 2014 23:36:31 +0000 (-0700) Subject: clkdev: Don't print errors on probe defer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8e53c3deb46ec5b45bd7f5e1cc8ff8d35ec92ba;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Russell King Signed-off-by: Mike Turquette --- diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c index f890b901c6bc..da4bda8b7fc7 100644 --- a/drivers/clk/clkdev.c +++ b/drivers/clk/clkdev.c @@ -101,8 +101,9 @@ struct clk *of_clk_get_by_name(struct device_node *np, const char *name) if (!IS_ERR(clk)) break; else if (name && index >= 0) { - pr_err("ERROR: could not get clock %s:%s(%i)\n", - np->full_name, name ? name : "", index); + if (PTR_ERR(clk) != -EPROBE_DEFER) + pr_err("ERROR: could not get clock %s:%s(%i)\n", + np->full_name, name ? name : "", index); return clk; }