clk: at91: fix clk-generated parenting
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 12 May 2017 14:25:30 +0000 (16:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:48:14 +0000 (19:48 +0200)
commit903ad1a90d3bda38028b2dc05af0e0e4814543f4
tree1f48ef2fcb90374aafe24082a5badd2054241ff4
parent2630e187b92af7e59bbb2b9702bbc2ac42b59fec
clk: at91: fix clk-generated parenting

[ Upstream commit 8e56133e5c7b7a7a97f6a92d92f664d5ecd30745 ]

clk_generated_startup is called after clk_hw_register. So the first call to
get_parent will not have the correct value (i.e. 0) and because this is
cached, it may never be updated.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Fixes: df70aeef6083 ("clk: at91: add generated clock driver")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/at91/clk-generated.c