diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2015-02-02 23:11:25 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-03-12 20:18:53 +0100 |
commit | b61c43c09f5e2b9bf8f340034c5ef1db8c64efa5 (patch) | |
tree | b0aae827b8dd71fc4c268b49e0a43af906f2cfb6 /drivers/clk/qcom/clk-rcg.c | |
parent | clk: Add tracepoints for hardware operations (diff) | |
download | linux-b61c43c09f5e2b9bf8f340034c5ef1db8c64efa5.tar.xz linux-b61c43c09f5e2b9bf8f340034c5ef1db8c64efa5.zip |
clk: clk_set_parent() with current parent shouldn't fail
If a driver calls clk_set_parent(clk, parent) and parent is the
current parent of clk we shouldn't fail in any case.
Unfortunately if clk is a read-only mux we return -ENOSYS
because we think we can't change the parent, except for in this
special case where we don't actually need to change the parent at
all. Return 0 in such a situation.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/qcom/clk-rcg.c')
0 files changed, 0 insertions, 0 deletions