linux_dsm_epyc7002/drivers/gpu/host1x
Amitoj Kaur Chawla 93ec302976 gpu: host1x: bus: Add missing of_node_put()
for_each_child_of_node() performs an of_node_get() on each iteration, so
to break out of the loop an of_node_put() is required.

Found using Coccinelle. The semantic patch used for this is as follows:

// <smpl>
@@
expression e;
local idexpression n;
@@

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

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2016-03-16 13:45:43 +01:00
..
hw gpu: host1x: Add Tegra210 support 2015-12-14 10:50:33 +01:00
bus.c gpu: host1x: bus: Add missing of_node_put() 2016-03-16 13:45:43 +01:00
bus.h gpu: host1x: Provide a proper struct bus_type 2015-01-27 10:09:14 +01:00
cdma.c gpu: host1x: Make mapped field of push buffers void * 2014-11-13 16:11:35 +01:00
cdma.h gpu: host1x: Make mapped field of push buffers void * 2014-11-13 16:11:35 +01:00
channel.c gpu: host1x: Export public API 2013-12-19 09:29:50 +01:00
channel.h gpu: host1x: Expose syncpt and channel functionality 2013-10-31 09:20:11 +01:00
debug.c gpu: host1x: Fix build warnings 2013-12-19 09:29:52 +01:00
debug.h gpu: host1x: Add debug support 2013-04-22 12:32:46 +02:00
dev.c gpu: host1x: Add Tegra210 support 2015-12-14 10:50:33 +01:00
dev.h gpu: host1x: Add MIPI pad calibration support 2013-12-19 09:29:43 +01:00
intr.c gpu: host1x: Add channel support 2013-04-22 12:32:43 +02:00
intr.h gpu: host1x: Add channel support 2013-04-22 12:32:43 +02:00
job.c drm/tegra: Make job submission 64-bit safe 2014-08-04 10:07:36 +02:00
job.h gpu: host1x: Make gather offsets unsigned 2014-11-13 16:11:44 +01:00
Kconfig gpu: host1x: Increase compile test coverage 2013-12-19 09:29:51 +01:00
Makefile gpu: host1x: Add Tegra210 support 2015-12-14 10:50:33 +01:00
mipi.c gpu: host1x: mipi: Power down regulators when unused 2015-08-13 13:47:21 +02:00
syncpt.c gpu: host1x: Export host1x_syncpt_read() 2015-04-02 18:46:20 +02:00
syncpt.h gpu: host1x: Add syncpoint base support 2013-10-31 09:55:48 +01:00