aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk/mvebu/armada-xp.c')
-rw-r--r--drivers/clk/mvebu/armada-xp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/clk/mvebu/armada-xp.c b/drivers/clk/mvebu/armada-xp.c
index 0ec44ae9a2a2..df529982adc9 100644
--- a/drivers/clk/mvebu/armada-xp.c
+++ b/drivers/clk/mvebu/armada-xp.c
@@ -228,7 +228,9 @@ static void __init axp_clk_init(struct device_node *np)
228 228
229 mvebu_coreclk_setup(np, &axp_coreclks); 229 mvebu_coreclk_setup(np, &axp_coreclks);
230 230
231 if (cgnp) 231 if (cgnp) {
232 mvebu_clk_gating_setup(cgnp, axp_gating_desc); 232 mvebu_clk_gating_setup(cgnp, axp_gating_desc);
233 of_node_put(cgnp);
234 }
233} 235}
234CLK_OF_DECLARE(axp_clk, "marvell,armada-xp-core-clock", axp_clk_init); 236CLK_OF_DECLARE(axp_clk, "marvell,armada-xp-core-clock", axp_clk_init);