OpenCloudOS-Kernel/drivers/iio/adc
Julia Lawall d4c65fe4ed iio: adc: spmi-vadc: add missing of_node_put
for_each_available_child_of_node performs an of_node_get on each iteration,
so a break out of the loop requires an of_node_put.

A simplified version of the semantic patch that fixes this problem is as
follows (http://coccinelle.lip6.fr):

// <smpl>
@@
expression root,e;
local idexpression child;
@@

 for_each_available_child_of_node(root, child) {
   ... when != of_node_put(child)
       when != e = child
(
   return child;
|
+  of_node_put(child);
?  return ...;
)
   ...
 }
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-11-21 18:24:44 +00:00
..
Kconfig iio: adc: hi8435: Holt HI-8435 threshold detector 2015-09-23 20:23:18 +01:00
Makefile iio: adc: hi8435: Holt HI-8435 threshold detector 2015-09-23 20:23:18 +01:00
ad799x.c iio: adc: ad799x: leave sysfs naming to the core 2015-09-30 18:20:53 +01:00
ad7266.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad7291.c 3rd round of IIO new drivers, cleanups and functionality for the 3.17 cycle. 2014-07-13 12:31:47 -07:00
ad7298.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad7476.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad7791.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad7793.c First set of IIO fixes for the 4.4 cycle. 2015-11-18 13:15:50 -08:00
ad7887.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad7923.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
ad_sigma_delta.c iio: adc: ad_sigma_delta: Fix indio_dev->trig assignment 2014-08-25 21:48:29 +01:00
at91_adc.c iio: adc: at91_adc: allow to use full range of startup time 2015-07-19 11:48:06 +01:00
axp288_adc.c Second set of new driver, functionality and cleanups for IIO in the 4.2 cycle. 2015-05-24 11:45:21 -07:00
berlin2-adc.c iio:adc:berlin2-adc: coding style cleanup 2015-08-12 22:13:57 +01:00
cc10001_adc.c iio: adc: cc10001: Power-up the ADC at probe time when used remotely 2015-06-14 12:21:22 +01:00
da9150-gpadc.c iio: Add support for DA9150 GPADC 2015-02-25 21:05:26 +01:00
exynos_adc.c iio: adc: exynos_adc: Add support for exynos7 2014-11-05 15:38:25 +00:00
hi8435.c iio: adc: hi8435: Holt HI-8435 threshold detector 2015-09-23 20:23:18 +01:00
lp8788_adc.c iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
max1027.c spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
max1363.c iio: adc: max1363: leave sysfs naming to the core 2015-09-30 18:20:53 +01:00
mcp320x.c spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
mcp3422.c iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
men_z188_adc.c iio: adc: men_z188_adc: Add terminating entry for men_z188_ids 2014-11-15 16:12:04 +00:00
nau7802.c tree-wide: use reinit_completion instead of INIT_COMPLETION 2013-11-15 09:32:21 +09:00
qcom-spmi-iadc.c iio: iadc: wait_for_completion_timeout time in jiffies 2015-01-10 11:43:26 +00:00
qcom-spmi-vadc.c iio: adc: spmi-vadc: add missing of_node_put 2015-11-21 18:24:44 +00:00
rockchip_saradc.c iio: adc: rockchip_saradc: add missing MODULE_* data 2015-07-19 11:47:58 +01:00
ti-adc081c.c iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
ti-adc128s052.c spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
ti_am335x_adc.c iio: adc: ti_am335x_adc: make sample delay, open delay, averaging DT parameters 2015-05-13 18:37:22 +01:00
twl4030-madc.c iio: adc: twl4030: Fix ADC[3:6] readings 2015-10-03 10:27:18 +01:00
twl6030-gpadc.c iio: adc: twl6030-gpadc: Fix module autoload for OF platform driver 2015-09-23 20:23:24 +01:00
vf610_adc.c First set of IIO fixes for the 4.4 cycle. 2015-11-18 13:15:50 -08:00
viperboard_adc.c iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
xilinx-xadc-core.c First set of IIO fixes for the 4.4 cycle. 2015-11-18 13:15:50 -08:00
xilinx-xadc-events.c iio: xilinx-xadc: Remove unused variable 2014-07-03 22:00:40 +01:00
xilinx-xadc.h iio: adc: xilinx-xadc: Push interrupts into hardirq context 2015-08-16 10:51:27 +01:00