clkdev: Don't print errors on probe defer
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 13 Jun 2014 23:36:31 +0000 (16:36 -0700)
committerMike Turquette <mturquette@linaro.org>
Thu, 26 Jun 2014 19:55:03 +0000 (12:55 -0700)
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>
drivers/clk/clkdev.c

index f890b901c6bc62f9d38ea7b16ae3d05fd3fb1df5..da4bda8b7fc7e99d24598b041978d5c19bfa52f6 100644 (file)
@@ -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;
                }