Julia Lawall 489e5d4152 clk: imx31: add missing of_node_put
for_each_compatible_node performs an of_node_get on each iteration, so a
break out of the loop requires an of_node_put.

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

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

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

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2015-10-21 16:16:34 -07:00
..
2015-09-02 17:07:10 -07:00
2015-09-17 11:15:14 -07:00
2015-10-21 16:16:34 -07:00
2015-07-20 11:11:36 -07:00
2015-10-01 15:24:34 -07:00
2015-07-20 11:11:08 -07:00
2015-10-20 08:49:11 -07:00
2015-09-01 12:18:40 -07:00
2015-07-20 11:11:32 -07:00
2015-05-21 11:55:05 -07:00
2015-07-20 11:11:22 -07:00
2015-07-20 11:11:33 -07:00
2015-04-10 14:44:43 -07:00
2015-07-20 10:53:00 -07:00
2015-07-20 11:11:35 -07:00
2015-07-20 10:53:04 -07:00
2015-07-20 10:53:05 -07:00
2015-10-21 16:16:32 -07:00
2015-05-06 11:58:57 +01:00