OSDN Git Service

clk: remove duplicated code with __clk_set_parent_after
authorDong Aisheng <aisheng.dong@freescale.com>
Tue, 28 Jul 2015 13:19:41 +0000 (21:19 +0800)
committerMichael Turquette <mturquette@baylibre.com>
Mon, 24 Aug 2015 23:49:13 +0000 (16:49 -0700)
commitc660b2ebb25be5668a4ed333539f34b05841e17a
treef5e93c26009e6d948203cad4e638b16ca0319d42
parent836ee0f7d95c3feb742bd4b3a02fea3fe75bdef3
clk: remove duplicated code with __clk_set_parent_after

__clk_set_parent_after() actually used the second argument then we
could put this duplicate logic in there and call it with a different
order of arguments in the success vs. error paths in this function.

Cc: Mike Turquette <mturquette@linaro.org>
Suggested-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Dong Aisheng <aisheng.dong@freescale.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk.c