clk: actually call the clock init before any other callback of the clock
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 24 Sep 2019 12:39:52 +0000 (14:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:36:40 +0000 (08:36 +0100)
commit93a3eff6fab3262ebbdb965d16715f753656ac12
treedca03d4ed01f392028db9913185da8aaab14457c
parentfa0150ba88fad5ed74419b370f577b3fbb653240
clk: actually call the clock init before any other callback of the clock

[ Upstream commit f6fa75ca912be6021335de63a32aa4d295f3c524 ]

 __clk_init_parent() will call the .get_parent() callback of the clock
 so .init() must run before.

Fixes: 541debae0adf ("clk: call the clock init() callback before any other ops callback")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lkml.kernel.org/r/20190924123954.31561-2-jbrunet@baylibre.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/clk.c