clk: at91: fix clk-generated parenting
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 12 May 2017 14:25:30 +0000 (16:25 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 1 Jun 2017 07:47:50 +0000 (00:47 -0700)
commit8e56133e5c7b7a7a97f6a92d92f664d5ecd30745
treea780a6e342717d7df517def12298dc81b26746a2
parentad14972422899b620fb594789824f0871dfb788c
clk: at91: fix clk-generated parenting

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>
drivers/clk/at91/clk-generated.c