]> git.baikalelectronics.ru Git - kernel.git/commit
clk: clk-fixed-factor: Clear OF_POPULATED flag in case of failure
authorRajan Vaja <rajan.vaja@xilinx.com>
Tue, 17 Jul 2018 13:17:00 +0000 (06:17 -0700)
committerStephen Boyd <sboyd@kernel.org>
Wed, 25 Jul 2018 16:36:46 +0000 (09:36 -0700)
commitb4815a6a9a0ab5ab4639b3a99ddd9a8904882354
treefe98a4194d5d02d2ece5aa3750d5dda4c61e9887
parent0d5624e606504772b89d3c3d6b1be740ef176c61
clk: clk-fixed-factor: Clear OF_POPULATED flag in case of failure

Fixed factor clock has two initializations at of_clk_init() time
and during platform driver probe. Before of_clk_init() call,
node is marked as populated and so its probe never gets called.

During of_clk_init() fixed factor clock registration may fail if
any of its parent clock is not registered. In this case, it doesn't
get chance to retry registration from probe. Clear OF_POPULATED
flag if fixed factor clock registration fails so that clock
registration is attempted again from probe.

Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-fixed-factor.c