clk: simplify clk_fetch_parent_index() function
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 28 Dec 2015 10:23:09 +0000 (19:23 +0900)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 2 Feb 2016 19:53:16 +0000 (11:53 -0800)
commit470b5e2f97cf8fb6a8375cc59e86314c9dd354c2
treefc781468a6e802aad430da86a3099cd6b27d3ef0
parent508f884a66abb61f22fcc2b36ab1e68492f1d295
clk: simplify clk_fetch_parent_index() function

The clk_core_get_parent_by_index can be used as a helper function
to simplify the implementation of clk_fetch_parent_index().

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk.c