diff options
author | Peter Griffin <[email protected]> | 2019-10-01 18:25:46 +0000 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2019-10-28 08:07:52 -0700 |
commit | f1edb498bd9f25936ae3540a8dbd86e6019fdb95 (patch) | |
tree | a09604bbb432db4c6aae788bdfd9f4e56a01a51f | |
parent | 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c (diff) |
clk: hi6220: use CLK_OF_DECLARE_DRIVER
As now we also need to probe in the reset driver as well.
Cc: Michael Turquette <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Allison Randal <[email protected]>
Cc: Peter Griffin <[email protected]>
Cc: [email protected]
Signed-off-by: Peter Griffin <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
[[email protected]: Add comment about reset driver]
Signed-off-by: Stephen Boyd <[email protected]>
-rw-r--r-- | drivers/clk/hisilicon/clk-hi6220.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/hisilicon/clk-hi6220.c b/drivers/clk/hisilicon/clk-hi6220.c index b2c5b6bbb1c1..e7cdf72d4b06 100644 --- a/drivers/clk/hisilicon/clk-hi6220.c +++ b/drivers/clk/hisilicon/clk-hi6220.c @@ -86,7 +86,8 @@ static void __init hi6220_clk_ao_init(struct device_node *np) hisi_clk_register_gate_sep(hi6220_separated_gate_clks_ao, ARRAY_SIZE(hi6220_separated_gate_clks_ao), clk_data_ao); } -CLK_OF_DECLARE(hi6220_clk_ao, "hisilicon,hi6220-aoctrl", hi6220_clk_ao_init); +/* Allow reset driver to probe as well */ +CLK_OF_DECLARE_DRIVER(hi6220_clk_ao, "hisilicon,hi6220-aoctrl", hi6220_clk_ao_init); /* clocks in sysctrl */ |