diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-08-26 17:31:50 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-08-29 21:51:17 +0300 |
commit | 943bbe743ce4c2846c41812186411841b0c9d7a1 (patch) | |
tree | 54d55f118dd3368bc7f7fc0487ae4c6dc726211e /drivers/iio/common | |
parent | 16335bcbf920d9903778d942ec5e579b25984b4b (diff) | |
download | linux-943bbe743ce4c2846c41812186411841b0c9d7a1.tar.xz |
iio: adc: ti-ads1015: add missing of_node_put() in ads1015_get_channels_config_of()
When terminating for_each_child_of_node() iteration with
break or return, of_node_put() should be used to prevent
stale device node references from being left behind.
This is detected by Coccinelle semantic patch.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/common')
0 files changed, 0 insertions, 0 deletions