diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2013-11-25 19:47:04 +0100 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-02-25 02:14:56 +0100 |
commit | a34cd4666f3da84228a82f70c94b8d9b692034ea (patch) | |
tree | bdf93ce97c4afa5c1c25de912109b13467c08224 /drivers/clk/clk.c | |
parent | clk: add pr_debug & kerneldoc around clk notifiers (diff) | |
download | linux-a34cd4666f3da84228a82f70c94b8d9b692034ea.tar.xz linux-a34cd4666f3da84228a82f70c94b8d9b692034ea.zip |
clk: return probe defer when DT clock not yet ready
At probe time, a clock device may not be ready when some other device
wants to use it.
This patch lets the functions clk_get/devm_clk_get return a probe defer
when the clock is defined in the DT but not yet available.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r-- | drivers/clk/clk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index f30e6af90332..cc2ca9aebe02 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2466,7 +2466,7 @@ EXPORT_SYMBOL_GPL(of_clk_del_provider); struct clk *__of_clk_get_from_provider(struct of_phandle_args *clkspec) { struct of_clk_provider *provider; - struct clk *clk = ERR_PTR(-ENOENT); + struct clk *clk = ERR_PTR(-EPROBE_DEFER); /* Check if we have such a provider in our array */ list_for_each_entry(provider, &of_clk_providers, link) { |