]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0dc4c5b19209124ab43d5dc900a8b8ef64dedc35
treef5e93c26009e6d948203cad4e638b16ca0319d42
parentc3936f0b206c333aadbbcc5f6ef33fdea65d4c0d
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