diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-12-28 11:23:04 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-02-02 20:53:10 +0100 |
commit | 5146e0b05963f75347c9f4e18996da245f859e32 (patch) | |
tree | dfd3f47d3f455d82f5eb741cf63595fd24d3189f /scripts/checkincludes.pl | |
parent | clk: move checking .get_parent to __clk_core_init() (diff) | |
download | linux-5146e0b05963f75347c9f4e18996da245f859e32.tar.xz linux-5146e0b05963f75347c9f4e18996da245f859e32.zip |
clk: simplify __clk_init_parent()
The translation from the index into clk_core is done by
clk_core_get_parent_by_index(). The if-block for num_parents == 1
case is duplicating the code in the clk_core_get_parent_by_index().
Drop the "if (num_parents == 1)" from the special case. Instead,
set the index to zero if .get_parent() is missing.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'scripts/checkincludes.pl')
0 files changed, 0 insertions, 0 deletions