summaryrefslogtreecommitdiffstats
path: root/drivers/devfreq/event/exynos-ppmu.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2016-07-08 13:44:04 +0000
committerMyungJoo Ham <myungjoo.ham@samsung.com>2016-09-06 13:08:40 +0900
commit0b38ed36a1ac5e8b8c6bee6f10aada45111a0658 (patch)
tree3a13573a7c16008c164942bbd6fe83eb42e3ad42 /drivers/devfreq/event/exynos-ppmu.c
parentc6935931c1894ff857616ff8549b61236a19148f (diff)
downloadblackbird-obmc-linux-0b38ed36a1ac5e8b8c6bee6f10aada45111a0658.tar.gz
blackbird-obmc-linux-0b38ed36a1ac5e8b8c6bee6f10aada45111a0658.zip
PM / devfreq: exynos-ppmu: remove unneeded of_node_put()
for_each_child_of_node() performs an of_node_put() on each iteration, so putting an of_node_put() before a continue results in a double put. Generated by: scripts/coccinelle/iterators/device_node_continue.cocci Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/devfreq/event/exynos-ppmu.c')
-rw-r--r--drivers/devfreq/event/exynos-ppmu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c
index 845bf25fb9fb..f55cf0eb2a66 100644
--- a/drivers/devfreq/event/exynos-ppmu.c
+++ b/drivers/devfreq/event/exynos-ppmu.c
@@ -406,8 +406,6 @@ static int of_get_devfreq_events(struct device_node *np,
of_property_read_string(node, "event-name", &desc[j].name);
j++;
-
- of_node_put(node);
}
info->desc = desc;
OpenPOWER on IntegriCloud