summaryrefslogtreecommitdiffstats
path: root/scripts/check_extable.sh
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-12-28 11:23:04 +0100
committerStephen Boyd <sboyd@codeaurora.org>2016-02-02 20:53:10 +0100
commit5146e0b05963f75347c9f4e18996da245f859e32 (patch)
treedfd3f47d3f455d82f5eb741cf63595fd24d3189f /scripts/check_extable.sh
parentclk: move checking .get_parent to __clk_core_init() (diff)
downloadlinux-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/check_extable.sh')
0 files changed, 0 insertions, 0 deletions