summaryrefslogtreecommitdiff
path: root/drivers/clk/mvebu/armada-xp.c
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 b3094315a3c0..2fa15a274719 100644
--- a/drivers/clk/mvebu/armada-xp.c
+++ b/drivers/clk/mvebu/armada-xp.c
@@ -202,7 +202,9 @@ static void __init axp_clk_init(struct device_node *np)
mvebu_coreclk_setup(np, &axp_coreclks);
- if (cgnp)
+ if (cgnp) {
mvebu_clk_gating_setup(cgnp, axp_gating_desc);
+ of_node_put(cgnp);
+ }
}
CLK_OF_DECLARE(axp_clk, "marvell,armada-xp-core-clock", axp_clk_init);