aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clk/versatile/clk-impd1.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--drivers/clk/versatile/clk-impd1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/clk/versatile/clk-impd1.c b/drivers/clk/versatile/clk-impd1.c
index ca798249544d..85c395df9c00 100644
--- a/drivers/clk/versatile/clk-impd1.c
+++ b/drivers/clk/versatile/clk-impd1.c
@@ -109,8 +109,10 @@ static int integrator_impd1_clk_probe(struct platform_device *pdev)
for_each_available_child_of_node(np, child) {
ret = integrator_impd1_clk_spawn(dev, np, child);
- if (ret)
+ if (ret) {
+ of_node_put(child);
break;
+ }
}
return ret;