]> git.karo-electronics.de Git - linux-beck.git/commit
clk: return probe defer when DT clock not yet ready
authorJean-Francois Moine <moinejf@free.fr>
Mon, 25 Nov 2013 18:47:04 +0000 (19:47 +0100)
committerMike Turquette <mturquette@linaro.org>
Tue, 25 Feb 2014 01:14:56 +0000 (17:14 -0800)
commita34cd4666f3da84228a82f70c94b8d9b692034ea
treebdf93ce97c4afa5c1c25de912109b13467c08224
parent86bcfa2e87c42b8af77188e7a939e952199d4da1
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>
drivers/clk/clk.c
drivers/clk/clkdev.c