Skip to contentSkip to conversation

clk: hi6220: use CLK_OF_DECLARE_DRIVER

PATCH In review John Stultz 2 participants 2 messages Oct 1, 2019 – Oct 28, 2019 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: hi6220: use CLK_OF_DECLARE_DRIVER

From: Peter Griffin <[email protected]>

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]>
---
 drivers/clk/hisilicon/clk-hi6220.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/hisilicon/clk-hi6220.c +1 -1
index b2c5b6bbb1c1..63a94e1b6785 100644
@@ -86,7 +86,7 @@ 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);
+CLK_OF_DECLARE_DRIVER(hi6220_clk_ao, "hisilicon,hi6220-aoctrl", hi6220_clk_ao_init);
 
 
 /* clocks in sysctrl */
Signature · 1 line
2.17.1
maintainer
#1 lore raw

Quoting John Stultz (2019-10-01 11:25:46)

Quoted 20 lines

From: Peter Griffin <[email protected]>

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]>
---
 drivers/clk/hisilicon/clk-hi6220.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/hisilicon/clk-hi6220.c +0 -0
index b2c5b6bbb1c1..63a94e1b6785 100644

drivers/clk/hisilicon/clk-hi6220.c static void __init hi6220_clk_ao_init(struct device_node *np) · line 90

Quoted 6 lines
drivers/clk/hisilicon/clk-hi6220.c +1 -1
@@ -86,7 +86,7 @@ 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);
+CLK_OF_DECLARE_DRIVER(hi6220_clk_ao, "hisilicon,hi6220-aoctrl", hi6220_clk_ao_init);
 

I'll add a comment about the reset driver to the code. Otherwise, applied to clk-next.