summaryrefslogtreecommitdiffstats
path: root/drivers/clk/nxp
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-02-09 20:19:14 +0900
committerStephen Boyd <sboyd@codeaurora.org>2016-02-09 10:18:48 -0800
commit2430a94d1e719b7b4af2a65b781a4c036eb22e64 (patch)
tree0312dece02be7a3e52d651e8c07746d60291d56b /drivers/clk/nxp
parent66f5ce2538e06dd6d628e37bbd38c79631274c9f (diff)
downloadlinux-2430a94d1e719b7b4af2a65b781a4c036eb22e64.tar.bz2
clk: fix __clk_init_parent() for single parent clocks
Before commit b3d192d5121f ("clk: simplify __clk_init_parent()"), __clk_init_parent() called .get_parent() only for multi-parent clocks. That commit changed the behavior to call .get_parent() if available even for single-parent clocks and root clocks. It turned out a problem because there are some single-parent clocks that implement .get_parent() callback and return non-zero index. The SOCFPGA clock is the case; the commit broke the SOCFPGA boards. To keep the original behavior, invoke .get_parent() only when num_parents is greater than 1. Fixes: b3d192d5121f ("clk: simplify __clk_init_parent()") Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reported-by: Dinh Nguyen <dinguyen@opensource.altera.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/nxp')
0 files changed, 0 insertions, 0 deletions