aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk/uniphier
diff options
context:
space:
mode:
authorGravatar Shawn Guo <shawn.guo@linaro.org> 2016-10-08 21:38:12 +0800
committerGravatar Stephen Boyd <sboyd@codeaurora.org> 2016-10-17 15:42:58 -0700
commitd3397484bb5b8534289a630c1a78500ff4f2fbf4 (patch)
treed9238524649f8e9744a78338d94aa21ff205db85 /drivers/clk/uniphier
parentclk: mvebu: armada-37xx-periph: Fix the clock gate flag (diff)
downloadlinux-d3397484bb5b8534289a630c1a78500ff4f2fbf4.tar.gz
linux-d3397484bb5b8534289a630c1a78500ff4f2fbf4.tar.bz2
linux-d3397484bb5b8534289a630c1a78500ff4f2fbf4.zip
clk: hi6220: use CLK_OF_DECLARE_DRIVER for sysctrl and mediactrl clock init
The hi6220-sysctrl and hi6220-mediactrl are not only clock provider but also reset controller. It worked fine that single sysctrl/mediactrl device node in DT can be used to initialize clock driver and populate platform device for reset controller. But it stops working after commit 989eafd0b609 ("clk: core: Avoid double initialization of clocks") gets merged. The commit sets flag OF_POPULATED during clock initialization to skip the platform device populating for the same device node. On hi6220, it effectively makes hi6220-sysctrl reset driver not probe any more. The patch changes hi6220 sysctrl and mediactrl clock init macro from CLK_OF_DECLARE to CLK_OF_DECLARE_DRIVER, so that the reset driver using the same hardware block can continue working. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Tested-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/uniphier')
0 files changed, 0 insertions, 0 deletions