]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Missing set_phase op is an error
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 2 Feb 2015 22:09:43 +0000 (14:09 -0800)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 12 Mar 2015 19:18:49 +0000 (12:18 -0700)
commitba077496faf7454b45f1fb05dd73bdfc025616f9
treea988748bd661eae7462e202d20674e4be3014323
parent8248770f4a6fba4329722096a0aae7064ce98f7f
clk: Missing set_phase op is an error

If a clock's clk_ops doesn't have the set_phase op set we should
return an error from clk_set_phase(). This way clock consumers
know that when they tried to set a phase it didn't work, as
opposed to the current behavior where the return value is 0
meaning success.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/clk.c