clocksource/drivers/timer-of: Do not warn on deferred probe
Deferred probe is an expected return value for clk_get() on many platforms. The driver deals with it properly, so there's no need to output a warning that may potentially confuse users. Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
This commit is contained in:
parent
a2b58537b4
commit
763719771e
|
@ -113,8 +113,10 @@ static __init int timer_of_clk_init(struct device_node *np,
|
||||||
of_clk->clk = of_clk->name ? of_clk_get_by_name(np, of_clk->name) :
|
of_clk->clk = of_clk->name ? of_clk_get_by_name(np, of_clk->name) :
|
||||||
of_clk_get(np, of_clk->index);
|
of_clk_get(np, of_clk->index);
|
||||||
if (IS_ERR(of_clk->clk)) {
|
if (IS_ERR(of_clk->clk)) {
|
||||||
|
ret = PTR_ERR(of_clk->clk);
|
||||||
|
if (ret != -EPROBE_DEFER)
|
||||||
pr_err("Failed to get clock for %pOF\n", np);
|
pr_err("Failed to get clock for %pOF\n", np);
|
||||||
return PTR_ERR(of_clk->clk);
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = clk_prepare_enable(of_clk->clk);
|
ret = clk_prepare_enable(of_clk->clk);
|
||||||
|
|
Loading…
Reference in New Issue