Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8e53c3d authored by Stephen Boyd's avatar Stephen Boyd Committed by Mike Turquette
Browse files

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: default avatarStephen Boyd <sboyd@codeaurora.org>
Acked-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent a497c3ba
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -101,6 +101,7 @@ struct clk *of_clk_get_by_name(struct device_node *np, const char *name)
		if (!IS_ERR(clk))
			break;
		else if (name && index >= 0) {
			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;