linux/arch/arm/mach-omap2
Julia Lawall 30645307e5 ARM: OMAP2+: add missing of_node_put after of_device_is_available
Add an of_node_put when a tested device node is not available.

The semantic patch that fixes this problem is as follows
(http://coccinelle.lip6.fr):

// <smpl>
@@
identifier f;
local idexpression e;
expression x;
@@

e = f(...);
... when != of_node_put(e)
    when != x = e
    when != e = x
    when any
if (<+...of_device_is_available(e)...+>) {
  ... when != of_node_put(e)
(
  return e;
|
+ of_node_put(e);
  return ...;
)
}
// </smpl>

Fixes: e0c827aca0730 ("drm/omap: Populate DSS children in omapdss driver")
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Tony Lindgren <tony@atomide.com>
2019-03-22 15:30:32 -07:00
..
2017-09-19 11:04:56 -07:00
2018-04-16 10:22:40 -07:00
2018-11-29 12:06:06 -08:00
2018-04-30 12:04:51 -07:00
2015-07-16 00:06:05 -07:00
2018-12-29 12:03:17 -08:00
2018-04-30 12:04:51 -07:00
2018-06-11 17:49:09 -07:00
2017-10-10 14:27:13 -07:00
2016-06-10 04:17:07 -07:00